diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-04-27 16:23:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 16:23:11 +0300 |
commit | c198612a3ed67d78d7964b0253e96b3fa1d7d707 (patch) | |
tree | 0fbfafd49aac60221a4b1adc0d76917dcf24fb57 /redis/commands/core.py | |
parent | 2d8b90139710240d172e16f1a60b2cd847a0802c (diff) | |
download | redis-py-c198612a3ed67d78d7964b0253e96b3fa1d7d707.tar.gz |
support set multi parameters (#2143)
Diffstat (limited to 'redis/commands/core.py')
-rw-r--r-- | redis/commands/core.py | 10 |
1 files changed, 8 insertions, 2 deletions
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: """ |