Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,12 @@ def client_pause(self, timeout):
raise DataError("CLIENT PAUSE timeout must be an integer")
return self.execute_command('CLIENT PAUSE', str(timeout))

def client_unpause(self):
"""
Unpause all redis clients
"""
return self.execute_command('CLIENT UNPAUSE')

def readwrite(self):
"Disables read queries for a connection to a Redis Cluster slave node"
return self.execute_command('READWRITE')
Expand Down
4 changes: 4 additions & 0 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,10 @@ def test_client_pause(self, r):
with pytest.raises(exceptions.RedisError):
r.client_pause(timeout='not an integer')

@skip_if_server_version_lt('6.2.0')
def test_client_unpause(self, r):
assert r.client_unpause() == b'OK'

def test_config_get(self, r):
data = r.config_get()
assert 'maxmemory' in data
Expand Down