mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Add Client Unblock
This commit is contained in:
10
commands.go
10
commands.go
@ -2068,6 +2068,16 @@ func (c *cmdable) ClientID() *IntCmd {
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *cmdable) ClientUnblock(id int64, isError bool) *IntCmd {
|
||||
args := []interface{}{"client", "unblock", id}
|
||||
if isError {
|
||||
args = append(args, "error")
|
||||
}
|
||||
cmd := NewIntCmd(args...)
|
||||
c.process(cmd)
|
||||
return cmd
|
||||
}
|
||||
|
||||
// ClientSetName assigns a name to the connection.
|
||||
func (c *statefulCmdable) ClientSetName(name string) *BoolCmd {
|
||||
cmd := NewBoolCmd("client", "setname", name)
|
||||
|
Reference in New Issue
Block a user