Versions in this module Expand all Collapse all v0 v0.0.2 Aug 29, 2019 v0.0.1 Aug 29, 2019 Changes in this version + var ExpiredErr = errors.New("Data expired") + type BookCacher interface + GetIfExists func(name string, expireTime time.Time) ([]byte, error) + Init func() error + Save func(name string, data []byte) error + func NewDiskCache(cacheDir string) BookCacher + type DiskCache struct + func (d *DiskCache) GetIfExists(name string, expireTime time.Time) ([]byte, error) + func (d *DiskCache) Init() error + func (d *DiskCache) Save(name string, data []byte) error