Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound indicates that a value for the key does not exist ErrNotFound = errors.New("value for key not found") )
Functions ¶
This section is empty.
Types ¶
type KVStore ¶
type KVStore interface { /** * Store sets the value for the key. */ Store(key interface{}, value interface{}) error /** * Load returns the value stored in the store for a key. * If a value for the key was not found, returns (nil, ErrNotFound) */ Load(key interface{}) (interface{}, error) /** * Delete deletes the value for a key. */ Delete(key interface{}) error }
KVStore is a generic key-value store interface.
Click to show internal directories.
Click to hide internal directories.