Versions in this module Expand all Collapse all v1 v1.0.2 Feb 18, 2026 v1.0.1 Feb 18, 2026 Changes in this version + var ErrInvalidMaxCost = errors.New("memory: MaxCost must be > 0") + type Config struct + BufferItems int64 + MaxCost int64 + Metrics bool + NumCounters int64 + type MemoryStore struct + func New(cfg Config) (*MemoryStore, error) + func (s *MemoryStore) Clear(ctx context.Context) error + func (s *MemoryStore) Close() error + func (s *MemoryStore) Delete(ctx context.Context, key string) error + func (s *MemoryStore) Get(ctx context.Context, key string) ([]byte, error) + func (s *MemoryStore) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error + func (s *MemoryStore) Wait()