Closed mstoykov closed 8 years ago
Hi! thanks for the PR! This is definitely something which needs to be added, thanks for submitting it. A couple overall comments, plus some inline ones:
Client
struct, because you're going to need it inside spin
when a master switch happens and pool.New
is called again.The main reason I store a pool.DialFunc
instead of sentinel.DialFunc
is because we will have to cast it either way. Line 241 was getting a bit long too :smile:
A couple small things then it's good to merge I think :)
done, thanks for contributing!
Maybe it will be better if there is
redis.Dial
for each master name?Either by
map[string]redis.Dial
or afunc(name string)redis.Dial
?