redis-rb icon indicating copy to clipboard operation
redis-rb copied to clipboard

Allow sentinel configuration to accept String URIs and not just a Hash

Open jcblitz opened this issue 10 years ago • 4 comments

A main Redis connection is flexible enough to accept a String URI and parse out the parameters, but the Sentinel configuration section is not, it only accepts a Hash. Please add in support from connection Strings. My use case is to make it easier to externalize those values as environment variables.

jcblitz avatar Sep 17 '15 14:09 jcblitz

It would make my life easier, currently I have to parse the ENV incoming variable from a service to extract in order to generate the hash.

marceloboeira avatar Oct 23 '15 19:10 marceloboeira

This would be amazing, as I use a local Redis server for development and push to a sentinel cluster, having the config in the same ENV variable would save so much code!

Lettuce has implemented this in their client (https://github.com/lettuce-io/lettuce-core/blob/master/src/main/java/com/lambdaworks/redis/RedisURI.java)

rfizzle avatar Jul 13 '17 21:07 rfizzle

fixed in #599

byroot avatar May 23 '20 11:05 byroot

Nevermind, I misread.

byroot avatar May 23 '20 11:05 byroot

That's is solved in 5.0

byroot avatar Aug 18 '22 08:08 byroot