Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { // optional and executed when an entry is purged. OnEvicted func(key string, value Value) // contains filtered or unexported fields }
Cache is a LRU cache. It is not safe for concurrent access.
func (*Cache) RemoveOldest ¶
func (c *Cache) RemoveOldest()
Click to show internal directories.
Click to hide internal directories.