Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Pools = map[string]Store{}
Pools LRU pools
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
Get(key string) (value interface{}, ok bool)
Set(key string, value interface{}, ttl time.Duration) error
Del(key string) error
Has(key string) bool
Len() int
Keys() []string
Clear()
GetSet(key string, ttl time.Duration, getValue func(key string) (interface{}, error)) (interface{}, error)
GetDel(key string) (value interface{}, ok bool)
GetMulti(keys []string) map[string]interface{}
SetMulti(values map[string]interface{}, ttl time.Duration)
DelMulti(keys []string)
GetSetMulti(keys []string, ttl time.Duration, getValue func(key string) (interface{}, error)) map[string]interface{}
}
Store The interface of a key-value store
Click to show internal directories.
Click to hide internal directories.