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 @@ -1305,6 +1305,12 @@ def client_pause(self, timeout):
1305
1305
raise DataError ("CLIENT PAUSE timeout must be an integer" )
1306
1306
return self .execute_command ('CLIENT PAUSE' , str (timeout ))
1307
1307
1308
+ def client_unpause (self ):
1309
+ """
1310
+ Unpause all redis clients
1311
+ """
1312
+ return self .execute_command ('CLIENT UNPAUSE' )
1313
+
1308
1314
def readwrite (self ):
1309
1315
"Disables read queries for a connection to a Redis Cluster slave node"
1310
1316
return self .execute_command ('READWRITE' )
Original file line number Diff line number Diff line change @@ -410,6 +410,10 @@ def test_client_pause(self, r):
410
410
with pytest .raises (exceptions .RedisError ):
411
411
r .client_pause (timeout = 'not an integer' )
412
412
413
+ @skip_if_server_version_lt ('6.2.0' )
414
+ def test_client_unpause (self , r ):
415
+ assert r .client_unpause () == b'OK'
416
+
413
417
def test_config_get (self , r ):
414
418
data = r .config_get ()
415
419
assert 'maxmemory' in data
You can’t perform that action at this time.
0 commit comments