Documentation ¶
Overview ¶
Package memory Is a copy of the storage memory from the external storage packet as a purpose to test the behavior in the unittests when using a storages from these packets
Index ¶
- Variables
- type Config
- type Storage
- func (s *Storage) Close() error
- func (s *Storage) Conn() map[string]entry
- func (s *Storage) Delete(key string) error
- func (s *Storage) Get(key string) ([]byte, error)
- func (s *Storage) Keys() ([][]byte, error)
- func (s *Storage) Reset() error
- func (s *Storage) Set(key string, val []byte, exp time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDefault = Config{ GCInterval: 10 * time.Second, }
ConfigDefault is the default config
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Time before deleting expired keys // // Default is 10 * time.Second GCInterval time.Duration }
Config defines the config for storage.
Click to show internal directories.
Click to hide internal directories.