summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py
index 53b7cc2..2ea28c3 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -402,6 +402,7 @@ class StrictRedis(object):
'CLIENT KILL': bool_ok,
'CLIENT LIST': parse_client_list,
'CLIENT SETNAME': bool_ok,
+ 'CLIENT UNBLOCK': int,
'CONFIG GET': parse_config_get,
'CONFIG RESETSTAT': bool_ok,
'CONFIG SET': bool_ok,
@@ -716,6 +717,10 @@ class StrictRedis(object):
"Sets the current connection name"
return self.execute_command('CLIENT SETNAME', name)
+ def client_unblock(self, client_id):
+ "Unblocks a connection by its client id"
+ return self.execute_command('CLIENT UNBLOCK', client_id)
+
def config_get(self, pattern="*"):
"Return a dictionary of configuration based on the ``pattern``"
return self.execute_command('CONFIG GET', pattern)