Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValue ¶
type KeyValue interface {
// Setnx sets key to hold string value if key does not exist otherwise return an error
Setnx(key string, value interface{}) error
// Set key to hold the string value. If key already holds a value, it is overwritten
Set(key string, value interface{}) error
Get(key string, val interface{}) (bool, error)
GetKeyedState(key string) (interface{}, error)
SetKeyedState(key string, value interface{}) error
// Delete must return *common.Error with NOT_FOUND error
Delete(key string) error
Keys() (keys []string, err error)
All() (all map[string]string, err error)
Clean() error
Drop() error
}
Click to show internal directories.
Click to hide internal directories.