From 2d8b90139710240d172e16f1a60b2cd847a0802c Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 27 Apr 2022 16:22:38 +0300 Subject: support get multi parameters (#2142) --- redis/commands/core.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'redis/commands/core.py') 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`` -- cgit v1.2.1