summaryrefslogtreecommitdiff
path: root/redis/commands/core.py
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-04-27 16:22:05 +0300
committerGitHub <noreply@github.com>2022-04-27 16:22:05 +0300
commit2da2ac3368bc88ad909d78fe73029bc9c627545d (patch)
treed84e14387b088a35bf4a9bb64b6561a2adc5b64c /redis/commands/core.py
parent683270557101cbfe26cad3eb4f187b7f8c218223 (diff)
downloadredis-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.py8
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