configs: added info how to set cache_license to redis

This commit is contained in:
RhodeCode Admin 2024-11-13 14:07:06 +01:00
parent ef109d8f05
commit d88fc5856d
2 changed files with 60 additions and 0 deletions

View file

@ -550,6 +550,36 @@ rc_cache.cache_repo.expiration_time = 2592000
; prefix for redis keys used for this cache backend, the final key is constructed using {custom-prefix}{key}
#rc_cache.cache_repo.arguments.key_prefix = custom-prefix-
; *********************************************
; `cache_license` cache for storing license info
; for simplicity use rc.file_namespace backend,
; for performance and scale use rc.redis
; *********************************************
rc_cache.cache_license.backend = dogpile.cache.rc.file_namespace
rc_cache.cache_license.expiration_time = 300
; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
#rc_cache.cache_license.arguments.filename = /tmp/cache_general_db
; alternative `cache_license` redis backend with distributed lock
#rc_cache.cache_license.backend = dogpile.cache.rc.redis
#rc_cache.cache_license.expiration_time = 300
; redis_expiration_time needs to be greater then expiration_time
#rc_cache.cache_license.arguments.redis_expiration_time = 360
#rc_cache.cache_license.arguments.host = localhost
#rc_cache.cache_license.arguments.port = 6379
#rc_cache.cache_license.arguments.db = 0
#rc_cache.cache_license.arguments.socket_timeout = 30
; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
#rc_cache.cache_license.arguments.distributed_lock = true
; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
#rc_cache.cache_license.arguments.lock_auto_renewal = true
; prefix for redis keys used for this cache backend, the final key is constructed using {custom-prefix}{key}
#rc_cache.cache_license.arguments.key_prefix = custom-prefix-
; ##############
; BEAKER SESSION

View file

@ -518,6 +518,36 @@ rc_cache.cache_repo.expiration_time = 2592000
; prefix for redis keys used for this cache backend, the final key is constructed using {custom-prefix}{key}
#rc_cache.cache_repo.arguments.key_prefix = custom-prefix-
; *********************************************
; `cache_license` cache for storing license info
; for simplicity use rc.file_namespace backend,
; for performance and scale use rc.redis
; *********************************************
rc_cache.cache_license.backend = dogpile.cache.rc.file_namespace
rc_cache.cache_license.expiration_time = 300
; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
#rc_cache.cache_license.arguments.filename = /tmp/cache_general_db
; alternative `cache_license` redis backend with distributed lock
#rc_cache.cache_license.backend = dogpile.cache.rc.redis
#rc_cache.cache_license.expiration_time = 300
; redis_expiration_time needs to be greater then expiration_time
#rc_cache.cache_license.arguments.redis_expiration_time = 360
#rc_cache.cache_license.arguments.host = localhost
#rc_cache.cache_license.arguments.port = 6379
#rc_cache.cache_license.arguments.db = 0
#rc_cache.cache_license.arguments.socket_timeout = 30
; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
#rc_cache.cache_license.arguments.distributed_lock = true
; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
#rc_cache.cache_license.arguments.lock_auto_renewal = true
; prefix for redis keys used for this cache backend, the final key is constructed using {custom-prefix}{key}
#rc_cache.cache_license.arguments.key_prefix = custom-prefix-
; ##############
; BEAKER SESSION