Versions in this module Expand all Collapse all v0 v0.1.0 Mar 30, 2021 Changes in this version + var Set = wire.NewSet(ProvideCache) + type Cache struct + func ProvideCache(ctx context.Context, auto promauto.Factory, cfg *Config, logger *log.Logger) (*Cache, func(), error) + func (c *Cache) Get(key string, val interface{}) bool + func (c *Cache) Prune() (n int, err error) + func (c *Cache) Put(key string, val interface{}) + type Config struct + MaxDisk int + MaxMem int + OnAdd func(key string, data []byte) + OnMiss func(key string) ([]byte, error) + Path string + func (c *Config) Bind(flags *pflag.FlagSet)