Documentation ¶
Index ¶
Constants ¶
View Source
const (
NoExpire = time.Duration(0)
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Get(key interface{}) (value interface{}, ok bool) Set(key interface{}, item interface{}, expire time.Duration) SetExpire(key interface{}, expire time.Duration) SetRefresher(fn func(c Cache, key interface{}, currentValue interface{}) (newValue interface{}, err error)) StartRefresher(key interface{}, refreshInterval time.Duration) StopRefresher(key interface{}) }
Click to show internal directories.
Click to hide internal directories.