Versions in this module Expand all Collapse all v0 v0.1.1 Feb 24, 2017 v0.1.0 Feb 24, 2017 Changes in this version + var ErrCacheMiss = errors.New("cache miss") + var ErrInvalidKey = errors.New("invalid key") + var ErrNotStored = errors.New("item not stored") + type Cache struct + func New(dir string, expire time.Duration) *Cache + func (c *Cache) Add(d *Item) error + func (c *Cache) Delete(key string) error + func (c *Cache) DeleteAll() error + func (c *Cache) FlushAll() error + func (c *Cache) Get(key string) ([][]string, error) + func (c *Cache) Replace(d *Item) error + func (c *Cache) Set(d *Item) error + type Item struct + Key string + Value [][]string