diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-09-01 13:10:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 13:10:56 +0300 |
commit | e53227cf68c065b4d31f39cdde7c85c5e91dd1bf (patch) | |
tree | 39d0455c889091895a51e4554de7195c10b6db8d /redis/commands.py | |
parent | 3dc2bf906f634383d33952d36cd78156a6e36e0e (diff) | |
download | redis-py-e53227cf68c065b4d31f39cdde7c85c5e91dd1bf.tar.gz |
LPUSHX support for list, no API changes (#1559)
Part of #1546
Diffstat (limited to 'redis/commands.py')
-rw-r--r-- | redis/commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/commands.py b/redis/commands.py index 895b00a..6e816de 100644 --- a/redis/commands.py +++ b/redis/commands.py @@ -1318,9 +1318,9 @@ class Commands: "Push ``values`` onto the head of the list ``name``" return self.execute_command('LPUSH', name, *values) - def lpushx(self, name, value): + def lpushx(self, name, *values): "Push ``value`` onto the head of the list ``name`` if ``name`` exists" - return self.execute_command('LPUSHX', name, value) + return self.execute_command('LPUSHX', name, *values) def lrange(self, name, start, end): """ |