Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2021 Changes in this version + type AdapterInterface interface + Clear func(key string) error + ClearAll func() error + ClearPrefix func(keyPrefix string) error + Get func(key string) (string, error) + IsValid func(key string) bool + Set func(key string, value string) error + func NewDiskCache(config DiskCacheConfig) *AdapterInterface + func NewInMemoryCache(config InMemoryCacheConfig) *AdapterInterface + type DiskCacheConfig struct + Directory string + ExpiresIn time.Duration + type InMemoryCacheConfig struct + ExpiresIn time.Duration