Documentation
¶
Index ¶
- func DecrBy(key string, update int64) (err error)
- func Del(key string) (err error)
- func Get(key string) (value interface{}, exists bool, err error)
- func GetWithValue(key string, value interface{}) (exists bool, err error)
- func IncrBy(key string, update int64) (err error)
- func InitStorage()
- func Put(key string, value interface{}) error
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWithValue ¶ added in v0.18.0
Types ¶
type Storage ¶
type Storage interface {
Put(key string, value interface{}) (err error)
Get(key string) (value interface{}, exists bool, err error)
GetWithValue(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.