redis-rb / redis-client

Simple low level client for Redis 6+
MIT License
124 stars 60 forks source link

SentinelConfig: handle role possibly being a string #134

Closed dhruvCW closed 1 year ago

dhruvCW commented 1 year ago

sometimes the redis options are provided as a hash with string values.

This is true in my case where the configurations are read as a json object from an environment variable.

Given that only the role is expected to be a symbol, It is a much better user experience if the conversion was handled internally by the library instead of requiring the user to handle it themselves.