summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-05-08 15:23:09 +0300
committerGitHub <noreply@github.com>2022-05-08 15:23:09 +0300
commit883fca7199a7ab7adc583b9ee324a9e44d0909eb (patch)
tree4a0fd3d4edd9373829502b6de22cb542f7462478 /redis/client.py
parentfaf55b65ffb7294b1a639cc9adb0231b987b0e32 (diff)
downloadredis-py-883fca7199a7ab7adc583b9ee324a9e44d0909eb.tar.gz
Get command keys for subcommands (#2170)
* parse subcommands * fix tests
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py
index 7c83b61..58668ee 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -553,6 +553,10 @@ def parse_command(response, **options):
cmd_dict["first_key_pos"] = command[3]
cmd_dict["last_key_pos"] = command[4]
cmd_dict["step_count"] = command[5]
+ if len(command) > 7:
+ cmd_dict["tips"] = command[7]
+ cmd_dict["key_specifications"] = command[8]
+ cmd_dict["subcommands"] = command[9]
commands[cmd_name] = cmd_dict
return commands