mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Add ClientPause command.
This commit is contained in:
@ -1114,6 +1114,13 @@ func (c *commandable) ClientList() *StringCmd {
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *commandable) ClientPause(dur time.Duration) *BoolCmd {
|
||||
cmd := NewBoolCmd("CLIENT", "PAUSE", formatMs(dur))
|
||||
cmd._clusterKeyPos = 0
|
||||
c.Process(cmd)
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *commandable) ConfigGet(parameter string) *SliceCmd {
|
||||
cmd := NewSliceCmd("CONFIG", "GET", parameter)
|
||||
cmd._clusterKeyPos = 0
|
||||
|
Reference in New Issue
Block a user