Redis url does not support authentication password and db index
I am using Redis as storage. However if authentication password enabled on Redis, I cannot find any guide to configure the Redis password.
And there are 16 DBs available (0~15, default is 0) in Redis, there is no ways to use another DB other than 0.
Could you enhance the Redis uri to support redis://<password>@<host>:<port>/<db> ?
@msellinger what do you think about this?
It is my impression that authentication is not often used with Redis, since servers are put into a firewalled network anyway. Likewise, instead of using database numbers, a key prefix can be used. That said, the requested features should not be too complicated to implement. The URL parsing needs to be enhanced. And after connecting to the Redis server, auth() and/or select() methods need to be executed. Unfortunately, at the moment I don't have enough time to do this but if someone wants to contribute a patch I can review it if it helps.