Skip to content

Commit

Permalink
Merge pull request #7 from cafebazaar/add-clean-window
Browse files Browse the repository at this point in the history
add clean window option
  • Loading branch information
avv-va authored Mar 7, 2020
2 parents f63c0e8 + 92b2e25 commit 3f9e022
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 3f9e022

Please sign in to comment.