Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ThreadSafeLruCache ¶
ThreadSafeLruCache is an alias of lru.Cache
func NewThreadSafeLruCache ¶
func NewThreadSafeLruCache(maxEntries int) *ThreadSafeLruCache
NewThreadSafeLruCache returns a thread safe lru cache with fix size
func NewThreadSafeLruCacheWithOnEvicted ¶ added in v0.1.5
func NewThreadSafeLruCacheWithOnEvicted(maxEntries int, onEvicted func(key Key, value interface{})) *ThreadSafeLruCache
NewThreadSafeLruCacheWithOnEvicted returns a thread safe lru cache with fix size
Click to show internal directories.
Click to hide internal directories.