whatyouhide / redix

Fast, pipelined, resilient Redis driver for Elixir. 🛍
http://hexdocs.pm/redix
MIT License
1.1k stars 122 forks source link

Sentinel Password Support #196

Closed darnfish closed 3 years ago

darnfish commented 3 years ago

Looks like the Redix client has support for auth via passwords when connecting to Redis instances but when connecting to Sentinel instances, no password option is available.

For example in https://github.com/luin/ioredis, a password and sentinelPassword field can be supplied.

Am I missing something or should I create a PR for this?

darnfish commented 3 years ago

Just figured out I needed to put the Redis password in the main opts map and then the Sentinel password in the sentinel map. My config looked like this after making the changes:

[
  sentinel: [
    sentinels: [[]],
    password: "abc",
    group: :mymaster,
  ],
  password: "def"
]