From 638bd7aa6e31e82536550c03f4a14c2bcc45cd7b Mon Sep 17 00:00:00 2001 From: dvora-h Date: Tue, 19 Sep 2023 13:40:41 +0300 Subject: [PATCH] Add support for multimple values in `RPUSHX` --- redis/commands/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redis/commands/core.py b/redis/commands/core.py index 031781d75d..9d81e9772c 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -2823,13 +2823,13 @@ def rpush(self, name: str, *values: FieldT) -> Union[Awaitable[int], int]: """ return self.execute_command("RPUSH", name, *values) - def rpushx(self, name: str, value: str) -> Union[Awaitable[int], int]: + def rpushx(self, name: str, *values: str) -> Union[Awaitable[int], int]: """ Push ``value`` onto the tail of the list ``name`` if ``name`` exists For more information see https://redis.io/commands/rpushx """ - return self.execute_command("RPUSHX", name, value) + return self.execute_command("RPUSHX", name, *values) def lpos( self,