Versions in this module Expand all Collapse all v1 v1.0.0 Feb 14, 2023 Changes in this version + func Hash(what []byte) uint64 + type Cache struct + func New(size int) *Cache + func (c *Cache) Add(key string, el interface{}) error + func (c *Cache) Get(key string) (interface{}, bool) + func (c *Cache) Len() int + func (c *Cache) Remove(key string) + func (c *Cache) SetEvict(e EvictFn) + func (c *Cache) UpdateAdd(key string, update func(interface{}) interface{}, add func() interface{}) interface{} + type EvictFn func(interface{}) bool