1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Add example for failover client.

This commit is contained in:
Vladimir Mihailenco
2014-07-13 15:49:33 +03:00
parent 2651b57a91
commit ffe62d60e2
5 changed files with 25 additions and 5 deletions

6
testdata/sentinel.conf vendored Normal file
View File

@ -0,0 +1,6 @@
port 26379
sentinel monitor master 127.0.0.1 6379 1
sentinel down-after-milliseconds master 2000
sentinel failover-timeout master 5000
sentinel parallel-syncs master 4