Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { Get(key interface{}) (interface{}, bool) Set(key, value interface{}) Size() int SetNotExist(key interface{}, newValGenerator func() interface{}) (interface{}, bool) }
Store represts a cache instance.
func NewLRUWithOnEvictedCallback ¶
NewLRUWithOnEvictedCallback creates a LRU memory cache with a OnEvicted callback
Click to show internal directories.
Click to hide internal directories.