##// END OF EJS Templates
configs: added info how to set cache_license to redis
super-admin -
r5620:b278fbe5 default
parent child Browse files
Show More
@@ -550,6 +550,36 b' rc_cache.cache_repo.expiration_time = 25'
550 550 ; prefix for redis keys used for this cache backend, the final key is constructed using {custom-prefix}{key}
551 551 #rc_cache.cache_repo.arguments.key_prefix = custom-prefix-
552 552
553 ; *********************************************
554 ; `cache_license` cache for storing license info
555 ; for simplicity use rc.file_namespace backend,
556 ; for performance and scale use rc.redis
557 ; *********************************************
558 rc_cache.cache_license.backend = dogpile.cache.rc.file_namespace
559 rc_cache.cache_license.expiration_time = 300
560 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
561 #rc_cache.cache_license.arguments.filename = /tmp/cache_general_db
562
563 ; alternative `cache_license` redis backend with distributed lock
564 #rc_cache.cache_license.backend = dogpile.cache.rc.redis
565 #rc_cache.cache_license.expiration_time = 300
566
567 ; redis_expiration_time needs to be greater then expiration_time
568 #rc_cache.cache_license.arguments.redis_expiration_time = 360
569
570 #rc_cache.cache_license.arguments.host = localhost
571 #rc_cache.cache_license.arguments.port = 6379
572 #rc_cache.cache_license.arguments.db = 0
573 #rc_cache.cache_license.arguments.socket_timeout = 30
574 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
575 #rc_cache.cache_license.arguments.distributed_lock = true
576
577 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
578 #rc_cache.cache_license.arguments.lock_auto_renewal = true
579
580 ; prefix for redis keys used for this cache backend, the final key is constructed using {custom-prefix}{key}
581 #rc_cache.cache_license.arguments.key_prefix = custom-prefix-
582
553 583
554 584 ; ##############
555 585 ; BEAKER SESSION
@@ -518,6 +518,36 b' rc_cache.cache_repo.expiration_time = 25'
518 518 ; prefix for redis keys used for this cache backend, the final key is constructed using {custom-prefix}{key}
519 519 #rc_cache.cache_repo.arguments.key_prefix = custom-prefix-
520 520
521 ; *********************************************
522 ; `cache_license` cache for storing license info
523 ; for simplicity use rc.file_namespace backend,
524 ; for performance and scale use rc.redis
525 ; *********************************************
526 rc_cache.cache_license.backend = dogpile.cache.rc.file_namespace
527 rc_cache.cache_license.expiration_time = 300
528 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
529 #rc_cache.cache_license.arguments.filename = /tmp/cache_general_db
530
531 ; alternative `cache_license` redis backend with distributed lock
532 #rc_cache.cache_license.backend = dogpile.cache.rc.redis
533 #rc_cache.cache_license.expiration_time = 300
534
535 ; redis_expiration_time needs to be greater then expiration_time
536 #rc_cache.cache_license.arguments.redis_expiration_time = 360
537
538 #rc_cache.cache_license.arguments.host = localhost
539 #rc_cache.cache_license.arguments.port = 6379
540 #rc_cache.cache_license.arguments.db = 0
541 #rc_cache.cache_license.arguments.socket_timeout = 30
542 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
543 #rc_cache.cache_license.arguments.distributed_lock = true
544
545 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
546 #rc_cache.cache_license.arguments.lock_auto_renewal = true
547
548 ; prefix for redis keys used for this cache backend, the final key is constructed using {custom-prefix}{key}
549 #rc_cache.cache_license.arguments.key_prefix = custom-prefix-
550
521 551
522 552 ; ##############
523 553 ; BEAKER SESSION
General Comments 0
You need to be logged in to leave comments. Login now