-
-
Notifications
You must be signed in to change notification settings - Fork 792
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
redis:// URL host & port configuration #39
Comments
Yes, this might be a good idea. I was trying to standardise the format of HOSTS across other potential backends, but there aren't any others with host support yet. Might just be worth having both supported, they're easy to distinguish programmatically. |
Choice is always good! The current (host, port) tuple is sensible. The |
I think it's at least important to be able to add the database number for the redis server, since people might host more then one django app on the same server. |
Did antirez back down on his plan to drop the database numbers? |
database numbers are only deprecated for redis-cluster. Alternatively some kind of namespacing the keys would be possible ? |
There's already a "PREFIX" setting that can be configured for the backend, it's just not documented yet. |
Fixed #39: Allow redis:// URL redis configuration
A
redis://
URL is a great shorthand for redis hostname & port settings, and it can easily be stored in an environment variable. It's very handy for Docker/Dokku deployments and is used in other Django + redis libraries (Celery, django-redis)Rather than:
It would look like this:
The text was updated successfully, but these errors were encountered: