mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Added implementation for WAIT command
Reference: https://redis.io/commands/wait
This commit is contained in:
committed by
Vladimir Mihailenco
parent
9405576413
commit
6b8c6b3fe9
@ -273,6 +273,13 @@ func (c *cmdable) Ping() *StatusCmd {
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *cmdable) Wait(numSlaves int, timeout time.Duration) *IntCmd {
|
||||
|
||||
cmd := NewIntCmd("wait", numSlaves, int(timeout/time.Second))
|
||||
c.process(cmd)
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *cmdable) Quit() *StatusCmd {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
Reference in New Issue
Block a user