Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage interface { Put(key string, value interface{}) (err error) Get(key string) (value interface{}, exists bool, err error) Del(key string) (err error) IncrBy(key string, update int64) (err error) DecrBy(key string, update int64) (err error) }
Storage defines an interface for saving key-value pairs
Click to show internal directories.
Click to hide internal directories.