diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-04-27 16:22:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 16:22:05 +0300 |
commit | 2da2ac3368bc88ad909d78fe73029bc9c627545d (patch) | |
tree | d84e14387b088a35bf4a9bb64b6561a2adc5b64c /redis/commands/core.py | |
parent | 683270557101cbfe26cad3eb4f187b7f8c218223 (diff) | |
download | redis-py-2da2ac3368bc88ad909d78fe73029bc9c627545d.tar.gz |
Add support for COMMAND GETKEYSANDFLAGS (#2141)
Co-authored-by: Chayim <chayim@users.noreply.github.com>
Diffstat (limited to 'redis/commands/core.py')
-rw-r--r-- | redis/commands/core.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/redis/commands/core.py b/redis/commands/core.py index 8aa2dce..db48b46 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -743,6 +743,14 @@ class ManagementCommands(CommandsProtocol): def command_count(self, **kwargs) -> ResponseT: return self.execute_command("COMMAND COUNT", **kwargs) + def command_getkeysandflags(self, *args: List[str]) -> List[Union[str, List[str]]]: + """ + Returns array of keys from a full Redis command and their usage flags. + + For more information see https://redis.io/commands/command-getkeysandflags + """ + return self.execute_command("COMMAND GETKEYSANDFLAGS", *args) + def command_docs(self, *args): """ This function throws a NotImplementedError since it is intentionally |