Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNilConfig = errors.New("config cannot be nil")
)
Functions ¶
This section is empty.
Types ¶
type IKV ¶
type IKV interface { // Get gets a value from the KV store; bool indicates if value exists Get(key string) (string, bool) // Set sets a key/value pair in the KV store; return bool indicates if key // was overwritten Set(key string, value string) bool // Delete will delete a key from the KV store; return bool indicates if // key existed before deletion Delete(key string) bool // Exists checks if a key exists in the KV store Exists(key string) bool // Purge removes all keys from the KV store; return int indicates how many // keys were removed. Purge() int64 // Keys returns a slice of all keys in the KV store Keys() []string // Items returns the number of keys in the KV store Items() int64 }
Click to show internal directories.
Click to hide internal directories.