Versions in this module Expand all Collapse all v0 v0.0.1 May 28, 2018 Changes in this version + type Byter interface + Bytes func() []byte + type Cache struct + func New(opts ...Option) *Cache + func (c *Cache) Add(key, val interface{}) + func (c *Cache) Cap() int + func (c *Cache) Get(key interface{}) (value interface{}, ok bool) + func (c *Cache) Len() int + func (c *Cache) Purge() int + func (c *Cache) Remove(key interface{}) interface{} + func (c *Cache) StartPurger(freq time.Duration) (stop func()) + func (c *Cache) TTU() time.Duration + type Option interface + func WithCapacity(cap int) Option + func WithShards(n int32) Option + func WithTTU(ttu time.Duration) Option