Documentation
¶
Index ¶
- func NewStore(prefix string) store.KV
- type Mem
- func (s *Mem) Close() error
- func (s *Mem) Delete(key interface{}) error
- func (s *Mem) Entries() (<-chan store.Pair, error)
- func (s *Mem) Exists(key interface{}) (bool, error)
- func (s *Mem) Key(key interface{}) string
- func (s *Mem) Read(key interface{}) ([]byte, error)
- func (s *Mem) Write(key interface{}, object []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mem ¶
type Mem struct {
// contains filtered or unexported fields
}
Mem stores the kv pairs with key by a prefix set at construct time. This is used for dev, learning mostly
Click to show internal directories.
Click to hide internal directories.