File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1300,6 +1300,12 @@ def client_pause(self, timeout):
1300
1300
raise DataError ("CLIENT PAUSE timeout must be an integer" )
1301
1301
return self .execute_command ('CLIENT PAUSE' , str (timeout ))
1302
1302
1303
+ def client_unpause (self ):
1304
+ """
1305
+ Unpause all redis clients
1306
+ """
1307
+ return self .execute_command ('CLIENT UNPAUSE' )
1308
+
1303
1309
def readwrite (self ):
1304
1310
"Disables read queries for a connection to a Redis Cluster slave node"
1305
1311
return self .execute_command ('READWRITE' )
Original file line number Diff line number Diff line change @@ -402,6 +402,10 @@ def test_client_pause(self, r):
402
402
with pytest .raises (exceptions .RedisError ):
403
403
r .client_pause (timeout = 'not an integer' )
404
404
405
+ @skip_if_server_version_lt ('6.2.0' )
406
+ def test_client_unpause (self , r ):
407
+ assert r .client_unpause () == b'OK'
408
+
405
409
def test_config_get (self , r ):
406
410
data = r .config_get ()
407
411
assert 'maxmemory' in data
You can’t perform that action at this time.
0 commit comments