Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
Name() string
Len() int
Get(k interface{}) (interface{}, bool)
Set(k, v interface{}, ttl time.Duration)
Remove(k interface{})
SetEvictCallBack(func(k, v interface{}))
}
func NewLRU ¶
func NewLRU(size int, name string, openStat bool, emitCounter MetricsCounterFunc) Cache
func NewSimpleTTL ¶
Click to show internal directories.
Click to hide internal directories.