Versions in this module Expand all Collapse all v0 v0.1.0 Jun 3, 2022 Changes in this version + type CacheConfig struct + Dir string + type CacheRepository struct + Err service.TypeError + func New(config *CacheConfig, l *logger.Logger) (repo *CacheRepository, err error) + func (c *CacheRepository) Delete(key string) error + func (c *CacheRepository) Exist(key string) (bool, error) + func (c *CacheRepository) Get(key string) (b *bytes.Buffer, err error) + func (c *CacheRepository) RangePrefix(prefix string) (b []*bytes.Buffer, err error) + func (c *CacheRepository) RegisterStruct(value interface{}) + func (c *CacheRepository) Store(id string, data interface{}, ttl *time.Duration) error + func (k *CacheRepository) RunGC(ctx context.Context, interval time.Duration, discardRatio float64)