Versions in this module Expand all Collapse all v0 v0.4.0 Dec 10, 2015 Changes in this version + type EvictCallback func(key interface{}, value interface{}) + type LRU struct + func NewLRU(size int, onEvict EvictCallback) (*LRU, error) + func (c *LRU) Add(key, value interface{}) bool + func (c *LRU) Contains(key interface{}) (ok bool) + func (c *LRU) Get(key interface{}) (value interface{}, ok bool) + func (c *LRU) GetOldest() (interface{}, interface{}, 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{}) bool + func (c *LRU) RemoveOldest() (interface{}, interface{}, bool) v0.4.0-rc2 Dec 1, 2015