Skip to content

Commit

Permalink
Reducing cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
ghecquet committed Dec 13, 2018
1 parent 4f39262 commit c6ee5a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/utils/bigcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ import (
func DefaultBigCacheConfig() bigcache.Config {

c := bigcache.DefaultConfig(30 * time.Minute)
c.HardMaxCacheSize = 20 * 1024 * 1024
c.CleanWindow = 10 * time.Minute
c.Shards = 256
c.MaxEntriesInWindow = 10 * 60 * 128
c.MaxEntrySize = 500
c.HardMaxCacheSize = 20

return c
}

0 comments on commit c6ee5a7

Please sign in to comment.