updated default, added param to example config

This commit is contained in:
Annika Hannig 2023-04-20 12:59:15 +02:00
parent 4e6fb2b28e
commit 21d8f508c1
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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