Skip to content

Commit 0acd0e7

Browse files
authored
Add support for multimple values in RPUSHX (#2949)
1 parent 012f7cf commit 0acd0e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redis/commands/core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2823,13 +2823,13 @@ def rpush(self, name: str, *values: FieldT) -> Union[Awaitable[int], int]:
28232823
"""
28242824
return self.execute_command("RPUSH", name, *values)
28252825

2826-
def rpushx(self, name: str, value: str) -> Union[Awaitable[int], int]:
2826+
def rpushx(self, name: str, *values: str) -> Union[Awaitable[int], int]:
28272827
"""
28282828
Push ``value`` onto the tail of the list ``name`` if ``name`` exists
28292829
28302830
For more information see https://redis.io/commands/rpushx
28312831
"""
2832-
return self.execute_command("RPUSHX", name, value)
2832+
return self.execute_command("RPUSHX", name, *values)
28332833

28342834
def lpos(
28352835
self,

0 commit comments

Comments
 (0)