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:38 +0300
committerGitHub <noreply@github.com>2022-04-27 16:22:38 +0300
commit2d8b90139710240d172e16f1a60b2cd847a0802c (patch)
tree521cb769859eecf1c74d94cdd5e07686457e2521 /redis/commands/core.py
parent2da2ac3368bc88ad909d78fe73029bc9c627545d (diff)
downloadredis-py-2d8b90139710240d172e16f1a60b2cd847a0802c.tar.gz
support get multi parameters (#2142)
Diffstat (limited to 'redis/commands/core.py')
-rw-r--r--redis/commands/core.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/redis/commands/core.py b/redis/commands/core.py
index db48b46..83b97d7 100644
--- a/redis/commands/core.py
+++ b/redis/commands/core.py
@@ -760,13 +760,15 @@ class ManagementCommands(CommandsProtocol):
"COMMAND DOCS is intentionally not implemented in the client."
)
- def config_get(self, pattern: PatternT = "*", **kwargs) -> ResponseT:
+ def config_get(
+ self, pattern: PatternT = "*", *args: List[PatternT], **kwargs
+ ) -> ResponseT:
"""
Return a dictionary of configuration based on the ``pattern``
For more information see https://redis.io/commands/config-get
"""
- return self.execute_command("CONFIG GET", pattern, **kwargs)
+ return self.execute_command("CONFIG GET", pattern, *args, **kwargs)
def config_set(self, name: KeyT, value: EncodableT, **kwargs) -> ResponseT:
"""Set config item ``name`` with ``value``