|
|
|
@ -288,8 +288,8 @@ REDIS_SSL_REQUIRED = 'none'
|
|
|
|
|
REDIS_USE_SSL = CONFIG.REDIS_USE_SSL
|
|
|
|
|
REDIS_PROTOCOL = 'rediss' if REDIS_USE_SSL else 'redis'
|
|
|
|
|
# Cache use sentinel
|
|
|
|
|
REDIS_SENTINELS_HOST = CONFIG.REDIS_SENTINELS_HOST
|
|
|
|
|
REDIS_SENTINEL_SERVICE_NAME, REDIS_SENTINELS = parse_sentinels_host(REDIS_SENTINELS_HOST)
|
|
|
|
|
REDIS_SENTINEL_HOSTS = CONFIG.REDIS_SENTINEL_HOSTS
|
|
|
|
|
REDIS_SENTINEL_SERVICE_NAME, REDIS_SENTINELS = parse_sentinels_host(REDIS_SENTINEL_HOSTS)
|
|
|
|
|
REDIS_SENTINEL_PASSWORD = CONFIG.REDIS_SENTINEL_PASSWORD
|
|
|
|
|
if CONFIG.REDIS_SENTINEL_SOCKET_TIMEOUT:
|
|
|
|
|
REDIS_SENTINEL_SOCKET_TIMEOUT = float(CONFIG.REDIS_SENTINEL_SOCKET_TIMEOUT)
|
|
|
|
|