diff --git a/bird/bird.go b/bird/bird.go index a8c15a8..3d43453 100644 --- a/bird/bird.go +++ b/bird/bird.go @@ -50,7 +50,7 @@ func InitializeCache() { } } else { // initialize the MemoryCache maxKeys := CacheConf.MaxKeys - maxKeysDefault := 100 + maxKeysDefault := 60 if maxKeys == 0 { log.Println("MaxKeys not set, using default value:", maxKeysDefault) maxKeys = maxKeysDefault diff --git a/etc/birdwatcher/birdwatcher.conf b/etc/birdwatcher/birdwatcher.conf index 702753b..3cef56b 100755 --- a/etc/birdwatcher/birdwatcher.conf +++ b/etc/birdwatcher/birdwatcher.conf @@ -87,6 +87,10 @@ use_redis = false # if not using redis cache, activate housekeeping to save memo redis_server = "myredis:6379" redis_db = 0 +# Maximum numbers of keys in the cache, if the +# memory cache is used. Does not apply to redis. +# max_keys = 60 + # Housekeeping expires old cache entries (memory cache backend) and performs a GC/SCVG run if configured. [housekeeping] # Interval for the housekeeping routine in minutes