Skip to content

Commit

Permalink
Add support for multimple values in RPUSHX (#2949)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvora-h committed Sep 19, 2023
1 parent 012f7cf commit 0acd0e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0acd0e7

Please sign in to comment.