Versions in this module Expand all Collapse all v0 v0.1.0 Apr 19, 2020 Changes in this version + type Cacher interface + Evict func(key ids.ID) + Flush func() + Get func(key ids.ID) (interface{}, bool) + Put func(key ids.ID, value interface{}) + type Deduplicator interface + Deduplicate func(Evictable) Evictable + Flush func() + type Evictable interface + Evict func() + ID func() ids.ID + type EvictableLRU struct + Size int + func (c *EvictableLRU) Deduplicate(value Evictable) Evictable + func (c *EvictableLRU) Flush() + type LRU struct + Size int + func (c *LRU) Evict(key ids.ID) + func (c *LRU) Flush() + func (c *LRU) Get(key ids.ID) (interface{}, bool) + func (c *LRU) Put(key ids.ID, value interface{})