summaryrefslogtreecommitdiff
path: root/redis/commands.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-10-18 12:19:37 +0300
committerGitHub <noreply@github.com>2021-10-18 12:19:37 +0300
commit7f96435480e74460989ad4dd4a686aff47e6b703 (patch)
tree8b10679493cdcf082e9e9801fb945e85d89d6807 /redis/commands.py
parent576d33c148de867fd48077a55d51135d14e45ec0 (diff)
downloadredis-py-7f96435480e74460989ad4dd4a686aff47e6b703.tar.gz
CLIENT REDIR command support (#1623)
Diffstat (limited to 'redis/commands.py')
-rw-r--r--redis/commands.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/redis/commands.py b/redis/commands.py
index c2d9ff7..cd3b802 100644
--- a/redis/commands.py
+++ b/redis/commands.py
@@ -377,6 +377,14 @@ class Commands:
"""Returns the current connection name"""
return self.execute_command('CLIENT GETNAME')
+ def client_getredir(self):
+ """Returns the ID (an integer) of the client to whom we are
+ redirecting tracking notifications.
+
+ see: https://redis.io/commands/client-getredir
+ """
+ return self.execute_command('CLIENT GETREDIR')
+
def client_reply(self, reply):
"""Enable and disable redis server replies.
``reply`` Must be ON OFF or SKIP,