Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2017 Changes in this version + type Cache struct + MaxEntries int + OnEvicted func(key Key, value interface{}) + func NewCache(maxEntries int) *Cache + func (c *Cache) Add(key Key, value interface{}) + func (c *Cache) Clear() + func (c *Cache) Get(key Key) (value interface{}, ok bool) + func (c *Cache) Info(callback func(Key, interface{}, int64)) + func (c *Cache) Len() int + func (c *Cache) Remove(key Key) + type Key interface