-
Notifications
You must be signed in to change notification settings - Fork 14
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
Connect to ENV["REDIS_URL"] by default #14
base: master
Are you sure you want to change the base?
Conversation
This makes it so that if you have a `REDIS_URL` environment variable set, redic will connect to that, and if that's not set it will connect to the default `redis://127.0.0.1:6379` address.
That used to be the default, but we removed it in a668e4b because we wanted to make the connection explicit when the client is instantiated, with |
Hrm. I thought that was the default! I set up Redic for the first time in a couple years and it broke a deploy because I assumed it would do this. Locally and in CI everything worked because I wonder if the goal is to be explicit whether Redic should be having any default at all. Let it fail loudly with an WDYT? Feel free to close the issue whatever you decide. |
@foca I overwrite Redic initialize method & add
Im try to make it like Redis initialize : ) , but it only support for old version of redic ... |
That's a big gotcha. In the docs it's stated that
I think the convenience of the default is the same as the convenience of running |
This makes it so that if you have a
REDIS_URL
environment variable set, redic will connect to that, and if that's not set it will connect to the defaultredis://127.0.0.1:6379
address.cc @cyx @soveran