|
|
|
@ -291,7 +291,10 @@ REDIS_PROTOCOL = 'rediss' if REDIS_USE_SSL else 'redis'
|
|
|
|
|
REDIS_SENTINELS_HOST = CONFIG.REDIS_SENTINELS_HOST
|
|
|
|
|
REDIS_SENTINEL_SERVICE_NAME, REDIS_SENTINELS = parse_sentinels_host(REDIS_SENTINELS_HOST)
|
|
|
|
|
REDIS_SENTINEL_PASSWORD = CONFIG.REDIS_SENTINEL_PASSWORD
|
|
|
|
|
REDIS_SENTINEL_SOCKET_TIMEOUT = CONFIG.REDIS_SENTINEL_SOCKET_TIMEOUT
|
|
|
|
|
if CONFIG.REDIS_SENTINEL_SOCKET_TIMEOUT:
|
|
|
|
|
REDIS_SENTINEL_SOCKET_TIMEOUT = int(CONFIG.REDIS_SENTINEL_SOCKET_TIMEOUT)
|
|
|
|
|
else:
|
|
|
|
|
REDIS_SENTINEL_SOCKET_TIMEOUT = None
|
|
|
|
|
|
|
|
|
|
# Cache config
|
|
|
|
|
REDIS_OPTIONS = {
|
|
|
|
|