Stagingbranch

Merged Sandeep S. Shewalkar requested to merge stagingbranch into master
Compare and
4 files
+ 38
9
Preferences
File browser
Compare changes
+ 8
8
@@ -7,15 +7,15 @@ import (
"github.com/allegro/bigcache"
)
const (
BIGCACHEShards=8
BIGCACHEMaxEntrySize=1024
BIGCACHEVerbose=true
BIGCACHEHardMaxCacheSize=0
BIGCACHEMaxEntriesInWindow=1000 10 60
BIGCACHELifeWindow=2
BIGCACHEShards = 8
BIGCACHEMaxEntrySize = 1024
BIGCACHEVerbose = true
BIGCACHEHardMaxCacheSize = 0
BIGCACHEMaxEntriesInWindow = 1000 * 10 * 60
BIGCACHELifeWindow = 2
)
var bigcacheConfig = bigcache.Config{
// number of shards (must be a power of 2)
// Shards: 4096,
@@ -23,7 +23,7 @@ var bigcacheConfig = bigcache.Config{
// time after which entry can be evicted
LifeWindow: BIGCACHELifeWindow * time.Hour,
// rps * lifeWindow, used only in initial memory allocation
MaxEntriesInWindow: 1000 * 10 * 60,
MaxEntriesInWindow: BIGCACHEMaxEntriesInWindow,
// MaxEntriesInWindow: 10,
// max entry size in bytes, used only in initial memory allocation
MaxEntrySize: BIGCACHEMaxEntrySize,