1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Add ForEachMaster API.

This commit is contained in:
Vladimir Mihailenco
2016-06-17 12:09:38 +00:00
parent 06f3f8ebf0
commit 4761c24218
8 changed files with 133 additions and 64 deletions

View File

@ -31,6 +31,7 @@ var (
type Cmder interface {
args() []interface{}
arg(int) string
readReply(*pool.Conn) error
setErr(error)
reset()
@ -142,7 +143,9 @@ type Cmd struct {
}
func NewCmd(args ...interface{}) *Cmd {
return &Cmd{baseCmd: newBaseCmd(args)}
return &Cmd{
baseCmd: newBaseCmd(args),
}
}
func (cmd *Cmd) reset() {