diff --git a/cache.go b/cache.go index f9db0b1..40988df 100644 --- a/cache.go +++ b/cache.go @@ -95,6 +95,7 @@ func newCacheInMem(layerName string, maxMem int, TTL time.Duration, amnesiaChanc MaxEntrySize: 500, Verbose: false, HardMaxCacheSize: maxMem, + CleanWindow: 1 * time.Minute, } cacheInstance, err := bigcache.NewBigCache(opts) if err != nil {