Documentation ¶
Index ¶
- type EvictCallback
- type LRU
- func (c *LRU) Add(key, value interface{}) (evicted bool)
- func (c *LRU) Contains(key interface{}) (ok bool)
- func (c *LRU) Get(key interface{}) (value interface{}, ok bool)
- func (c *LRU) GetOldest() (key, value interface{}, ok bool)
- func (c *LRU) Keys() []interface{}
- func (c *LRU) Len() int
- func (c *LRU) Peek(key interface{}) (value interface{}, ok bool)
- func (c *LRU) Purge()
- func (c *LRU) Remove(key interface{}) (present bool)
- func (c *LRU) RemoveOldest() (key, value interface{}, ok bool)
- func (c *LRU) Resize(size int64) (evicted int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvictCallback ¶
type EvictCallback func(key interface{}, value interface{})
Click to show internal directories.
Click to hide internal directories.