Versions in this module Expand all Collapse all v1 v1.0.0 Sep 8, 2020 Changes in this version + type Cacher interface + Count func() uint32 + Get func(key string) (*Item, bool) + Set func(key string, ttl time.Duration, item *Item) + type InMemoryCache struct + func NewInMemoryCache(cleanupInterval time.Duration) *InMemoryCache + func (c *InMemoryCache) Count() uint32 + func (c *InMemoryCache) Get(key string) (*Item, bool) + func (c *InMemoryCache) Set(key string, ttl time.Duration, item *Item) + type Item struct + Content io.ReadSeeker + ModifiedTime time.Time