-
Notifications
You must be signed in to change notification settings - Fork 17
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
Allow for configuration of redis connection via URL #6
Comments
This is actually already supported but not documented. You just have to pass the url as a string instead of a configuration object to the store property of the respective environment. |
Just to confirm, you pass the connection string directly to store? Also, what is the format of the connection string that's accepted? I've tried a few different versions with no success. Thank you! |
I tried this:
|
@backspace I believe that error is from how then-redis parses the url. Some redis providers include dummy username (after the |
Ah, thanks. With just |
Never mind, I see that it does choose 0 by default. |
We should be able to provide a URL in configuration connection to redis. It is supported by then-redis, so it shouldn't be too much work to support it in this library. Developers commonly have connection info available as a URL (from an env var, for example), and they shouldn't have to write code to parse it out.
The text was updated successfully, but these errors were encountered: