From c198612a3ed67d78d7964b0253e96b3fa1d7d707 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 27 Apr 2022 16:23:11 +0300 Subject: support set multi parameters (#2143) --- redis/commands/core.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'redis/commands/core.py') diff --git a/redis/commands/core.py b/redis/commands/core.py index 83b97d7..1d0be8a 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -770,12 +770,18 @@ class ManagementCommands(CommandsProtocol): """ return self.execute_command("CONFIG GET", pattern, *args, **kwargs) - def config_set(self, name: KeyT, value: EncodableT, **kwargs) -> ResponseT: + def config_set( + self, + name: KeyT, + value: EncodableT, + *args: List[Union[KeyT, EncodableT]], + **kwargs, + ) -> ResponseT: """Set config item ``name`` with ``value`` For more information see https://redis.io/commands/config-set """ - return self.execute_command("CONFIG SET", name, value, **kwargs) + return self.execute_command("CONFIG SET", name, value, *args, **kwargs) def config_resetstat(self, **kwargs) -> ResponseT: """ -- cgit v1.2.1