summaryrefslogtreecommitdiff
path: root/redis/commands.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-09-01 13:42:37 +0300
committerGitHub <noreply@github.com>2021-09-01 13:42:37 +0300
commit51516cbd16b538584b7ea8c6a0cdbc76cda3d90a (patch)
tree1f4ad811eb20ba903b3a6b3eb40423a12d2f7019 /redis/commands.py
parent0f8d0dcbb3a7f759843f3f89e413f9333d027c98 (diff)
downloadredis-py-51516cbd16b538584b7ea8c6a0cdbc76cda3d90a.tar.gz
Support for CLIENT TRACKINFO (#1560)
Part of #1546
Diffstat (limited to 'redis/commands.py')
-rw-r--r--redis/commands.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/redis/commands.py b/redis/commands.py
index 4148f98..27276bc 100644
--- a/redis/commands.py
+++ b/redis/commands.py
@@ -369,6 +369,13 @@ class Commands:
"Returns the current connection id"
return self.execute_command('CLIENT ID')
+ def client_trackinginfo(self):
+ """Returns the information about the current client connection's
+ use of the server assisted client side cache.
+ See https://redis.io/commands/client-trackinginfo
+ """
+ return self.execute_command('CLIENT TRACKINGINFO')
+
def client_setname(self, name):
"Sets the current connection name"
return self.execute_command('CLIENT SETNAME', name)