Documentation
¶
Overview ¶
Package memory provides an in-memory key-value storage backend.
This is the default storage backend, suitable for development and testing. Data is not persisted across restarts.
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) Delete(ctx context.Context, key string) error
- func (s *Store) Get(ctx context.Context, key string) ([]byte, error)
- func (s *Store) Len() int
- func (s *Store) List(ctx context.Context, prefix string) ([]string, error)
- func (s *Store) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.