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.
1 parent 27c0e6d commit 312246fCopy full SHA for 312246f
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