Versions in this module Expand all Collapse all v1 v1.0.1 Jun 17, 2021 v1.0.0 Mar 26, 2021 Changes in this version + type Cache struct + func New(size int) (*Cache, error) + func (c *Cache) Add(key, value interface{}) + func (c *Cache) Get(key interface{}) (value interface{}, ok bool) + func (c *Cache) Keys() []interface{} + func (c *Cache) Len() int + func (c *Cache) Purge() + func (c *Cache) Remove(key interface{}) + func (c *Cache) RemoveOldest()