-
-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ability to specify health_check_interval for redis #425
Comments
Also would like the ability to pass this kwarg, or maybe just arbitrary kwargs through to the redis-py connection |
+1 |
Hello! It is already possible to pass Since when a connection has to be made in You can do it with the following setting CACHES = {
'default': {
'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': 'redis://localhost:6379',
'OPTIONS': {
"REDIS_CLIENT_KWARGS": {"health_check_interval": 30}
}
}
} I am closing this, feel free to reopen if my answer did not help you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am currently running in issue where my Django web app periodically loses connection with my Redis. This seems due to the issue discussed in redis/redis-py#1140
something like the health_check_interval option would allow such a connection failure to be fixed.
The text was updated successfully, but these errors were encountered: