code: func (m *MemoryManager) GetAll(limit, offset int64) (Policies, error) {
  	keys := make([]string, len(m.Policies))
  	i := 0
  	m.RLock()
  	for key := range m.Policies {
  		keys[i] = key
  		i++
  	}
  
  	start, end := pagination.Index(int(limit), int(offset), len(m.Policies))
  	sort.Strings(keys)
  	ps := make(Policies, len(keys[start:end]))
  	i = 0
  	for _, key := range keys[start:end] {
  		ps[i] = m.Policies[key]
  		i++
  	}
  	m.RUnlock()
  	return ps, nil
  }
docs: // GetAll returns all policies.