Versions in this module Expand all Collapse all v1 v1.0.2 Sep 14, 2021 Changes in this version type CacheService + GetKeys func() []string v1.0.1 Sep 13, 2021 Changes in this version + func InitOnce(conf CacheConfig) + type CacheConfig struct + CleanupInterval time.Duration + DefaultExpiration time.Duration + FlushTimerTime time.Duration + type CacheFlushDaemon interface + Done func(ctx context.Context) (done <-chan interface{}) + LoadKeys func(ctx context.Context, value interface{}) (cacheKeys []string) + LoadValues func(ctx context.Context) (values []interface{}) + type CacheService interface + Del func(k string) + Flush func() + Get func(k string) (v interface{}, ok bool) + GetByDefault func(k string, v interface{}) interface{} + GetValues func() []interface{} + Item func() map[string]cache.Item + Register func(ctx context.Context, daemon CacheFlushDaemon) + Set func(k string, v interface{}) + SetEx func(k string, v interface{}, ex time.Duration) + func Singleton() CacheService v1.0.0 Sep 13, 2021