Versions in this module Expand all Collapse all v0 v0.0.1 Apr 9, 2020 Changes in this version + var ErrorCacheKeyNotFound = errors.New("Cache Key Not Found") + type Cache struct + Providers []Provider + func (c Cache) Delete(key string) error + func (c Cache) Get(key string) (Item, error) + func (c Cache) Has(key string) (bool, error) + func (c Cache) Set(item Item) (Item, error) + type Item struct + ExpiresAt *time.Time + Key string + Value []byte + type Provider interface + Delete func(key string) error + Get func(key string) (Item, error) + Has func(key string) (bool, error) + Set func(item Item) (Item, error) + type ProviderJSON struct + HashFilenames bool + Path string + func (p ProviderJSON) Delete(key string) error + func (p ProviderJSON) Get(key string) (Item, error) + func (p ProviderJSON) Has(key string) (bool, error) + func (p ProviderJSON) Set(item Item) (Item, error) + type ProviderMemory struct + func (p *ProviderMemory) Delete(key string) error + func (p *ProviderMemory) Get(key string) (Item, error) + func (p *ProviderMemory) Has(key string) (bool, error) + func (p *ProviderMemory) Set(item Item) (Item, error)