mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
updated default, added param to example config
This commit is contained in:
parent
4e6fb2b28e
commit
21d8f508c1
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue