Support redis sentinel configuration 18/1018/1 v0.4.0
authorMarco Tallskog <marco.tallskog@nokia.com>
Thu, 26 Sep 2019 12:51:29 +0000 (15:51 +0300)
committerMarco Tallskog <marco.tallskog@nokia.com>
Thu, 26 Sep 2019 12:54:37 +0000 (15:54 +0300)
commit33fdc5897e5a97acd2b866c3f01af8151f40fda3
tree93c78d6689900c8040acfa8321c13a7d277038e2
parentd64c510705ac1623c052aedc4ddc50aabeb1e798
Support redis sentinel configuration

Based on environment variables set, sdl will select either to connect to
standalone redis or sentinel redis. The underlying redis-go
implementation takes care of how connection to master is handled and
what happens if there is a switcover in redis.

Change-Id: Ib413b61e6a7e26e8ad2bd7f83331554271a93c69
Signed-off-by: Marco Tallskog <marco.tallskog@nokia.com>
internal/sdlgoredis/sdlgoredis.go