mediocregopher / radix.v2

Redis client for Go
http://godoc.org/github.com/mediocregopher/radix.v2
MIT License
433 stars 92 forks source link

add sentinel.NewClientCustom - fixes #19 #20

Closed mstoykov closed 8 years ago

mstoykov commented 8 years ago

Maybe it will be better if there is redis.Dial for each master name?

Either by map[string]redis.Dial or a func(name string)redis.Dial?

mediocregopher commented 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:

mstoykov commented 8 years ago

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:

mediocregopher commented 8 years ago

A couple small things then it's good to merge I think :)

mediocregopher commented 8 years ago

done, thanks for contributing!