From 92b2e25497a556e6b2d552e953f56d3cbcf8719f Mon Sep 17 00:00:00 2001 From: Pedram Teymoori Date: Tue, 3 Mar 2020 14:29:16 +0330 Subject: [PATCH] add clean window option --- cache.go | 1 + 1 file changed, 1 insertion(+) 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 {