We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46cd551 + 312246f commit 2ba840cCopy full SHA for 2ba840c
netbox/netbox/settings.py
@@ -250,6 +250,7 @@ def _setting(name, default=None):
250
}
251
252
if CACHING_REDIS_SENTINELS:
253
+ DJANGO_REDIS_CONNECTION_FACTORY = 'django_redis.pool.SentinelConnectionFactory'
254
CACHES['default']['LOCATION'] = f'{CACHING_REDIS_PROTO}://{CACHING_REDIS_SENTINEL_SERVICE}/{CACHING_REDIS_DATABASE}'
255
CACHES['default']['OPTIONS']['CLIENT_CLASS'] = 'django_redis.client.SentinelClient'
256
CACHES['default']['OPTIONS']['SENTINELS'] = CACHING_REDIS_SENTINELS
0 commit comments