Versions in this module Expand all Collapse all v1 v1.0.0 Apr 11, 2017 Changes in this version + type Cache struct + MaxEntries int + OnEvicted func(key string, value interface{}) + func New(maxEntries int) *Cache + func (c *Cache) Add(key string, value interface{}) + func (c *Cache) Get(key string) (value interface{}, ok bool) + func (c *Cache) Len() int + func (c *Cache) Remove(key string) bool + func (c *Cache) RemoveOldest()