# HG changeset patch # User RhodeCode Admin # Date 2024-11-13 13:07:06 # Node ID b278fbe556687191f1dfd053ec79a6254631c5f4 # Parent c9e499e7c60bbd2c7af1a30ec3041e048c1d1eec configs: added info how to set cache_license to redis diff --git a/configs/development.ini b/configs/development.ini --- a/configs/development.ini +++ b/configs/development.ini @@ -550,6 +550,36 @@ rc_cache.cache_repo.expiration_time = 25 ; 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 diff --git a/configs/production.ini b/configs/production.ini --- a/configs/production.ini +++ b/configs/production.ini @@ -518,6 +518,36 @@ rc_cache.cache_repo.expiration_time = 25 ; 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