diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-05-08 15:23:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 15:23:09 +0300 |
commit | 883fca7199a7ab7adc583b9ee324a9e44d0909eb (patch) | |
tree | 4a0fd3d4edd9373829502b6de22cb542f7462478 /redis/client.py | |
parent | faf55b65ffb7294b1a639cc9adb0231b987b0e32 (diff) | |
download | redis-py-883fca7199a7ab7adc583b9ee324a9e44d0909eb.tar.gz |
Get command keys for subcommands (#2170)
* parse subcommands
* fix tests
Diffstat (limited to 'redis/client.py')
-rwxr-xr-x | redis/client.py | 4 |
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 |