Documentation
¶
Overview ¶
Package memkv implements an in-memory key/value store with same API surface as "github.com/kelseyhightower/memkv".
Index ¶
- Variables
- func FillKvMap(kvMap map[string]string, data interface{})
- func IsBadPattern(err error) bool
- func IsNotExists(err error) bool
- func NewKeyError(key string, err error) error
- func Walk(callback func(key []string, value interface{}), data interface{})
- type KVPair
- type KVPairs
- type KeyError
- type Option
- type Store
- func (s Store) Del(key string)
- func (s Store) Exists(key string) bool
- func (s Store) Get(key string) (KVPair, error)
- func (s Store) GetAll(pattern string) (KVPairs, error)
- func (s Store) GetAllValues(pattern string) ([]string, error)
- func (s Store) GetValue(key string, defaultValue ...string) (string, error)
- func (s Store) List(filePath string) []string
- func (s Store) ListDir(filePath string) []string
- func (s Store) Purge()
- func (s Store) Set(key string, value string)
- func (s Store) ToKvMap() map[string]string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotExist = errors.New("key does not exist") ErrBadPattern = path.ErrBadPattern )
Functions ¶
func IsBadPattern ¶
func IsNotExists ¶
func NewKeyError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.