Skip to content

Commit

Permalink
add clean window option
Browse files Browse the repository at this point in the history
  • Loading branch information
pedramteymoori committed Mar 3, 2020
1 parent f63c0e8 commit 92b2e25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 92b2e25

Please sign in to comment.