I'm switching over from a heroku addon to a direct redis cloud account and am a bit puzzled on how to generate the redis url with the auth info.
The old heroku add-on url was in the format of redis://rediscloud:mypassword@redis...
However in the dashboard and documentation I don't see any mention of a username to go along with the password. Do I still set rediscloud
as the username in my new account and connection string. Does it even matter what I set as the username there?
Up to and including version 4, Redis did not support users and only provided authentication against a global password.
In order to be compliant with the URI RFC and based on the provisional RFC for Redis URIs , you can pass anything as a username
, including an empty string, and it will be okay (i.e. ignored).
P.S. thanks for bringing up this obscurity in our docs, I'll see that it is amended.