Versions in this module Expand all Collapse all v0 v0.9.1 May 15, 2023 v0.9.0 Dec 2, 2018 Changes in this version + type DiskCache struct + Dir string + Timeout time.Duration + func NewDiskCache() *DiskCache + func (d *DiskCache) InitDir() (bool, error) + func (d *DiskCache) Load(filename string) ([]byte, error) + func (d *DiskCache) Save(filename string, data []byte) error + func (d *DiskCache) SetTimeout(timeout time.Duration) + func (d *DiskCache) State(filename string) FileState + type FileState int + const Absent + const Expired + const Good + const ShouldReload + func (f FileState) String() string + type MemoryCache struct + Timeout time.Duration + func NewMemoryCache() *MemoryCache + func (m *MemoryCache) Load(filename string) ([]byte, error) + func (m *MemoryCache) Save(filename string, data []byte) error + func (m *MemoryCache) SetTimeout(timeout time.Duration) + func (m *MemoryCache) State(filename string) FileState + type RegistryCache interface + Load func(filename string) ([]byte, error) + Save func(filename string, data []byte) error + SetTimeout func(timeout time.Duration) + State func(filename string) FileState