Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrCacheMiss = errors.New("cache miss") // ErrInvalidDstVal is returned with the dstVal of the Get() func cannot be set. It's probably because the // dstVal is not a pointer. ErrInvalidDstVal = errors.New("cannot set dst value") // ErrInvalidDataFormat is returned when the data retrieved from a storage engine is not in the expected format ErrInvalidDataFormat = errors.New("Invalid data format") )
Errors
Functions ¶
Types ¶
type Clearer ¶
type Clearer interface {
Clear() error
}
Clearer defines an interface which store can clear all it's key/value pairs at once.
type Datastore ¶
Datastore defines an key/value interface which supports exporting all it's keys and also transferring all it's data to another KeyStore.
type KeyList ¶
type KeyList interface {
Keys() []string
}
KeyList defines an interface for announcing all keys currently set
type KeyProvider ¶
type KeyProvider interface {
Key() string
}
KeyProvider is an interface which can describe it's own key. It's used for getting/setting key/value pairs without a directly supplied key string. Instead, the supplied interface can announce it's own key, and that's used in getting/setting.
Click to show internal directories.
Click to hide internal directories.