summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorKonstantin Merenkov <kmerenkov@gmail.com>2010-05-21 22:48:08 +0400
committerKonstantin Merenkov <kmerenkov@gmail.com>2010-05-21 23:04:30 +0400
commitab623e03ca84d22313af06744a1f887ed436b9f0 (patch)
tree8b0013ee0e27873b050fa91791d7de08ca8e0da7 /redis/client.py
parent2b07bd7ad65d4fdee11e1a3dba65180dd920cf75 (diff)
downloadredis-py-ab623e03ca84d22313af06744a1f887ed436b9f0.tar.gz
Renamed ZINTER/ZUNION to ZINTERSTORE/ZUNIONSTORE
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index d6932d1..d5e33ab 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -930,7 +930,7 @@ class Redis(threading.local):
a new sorted set, ``dest``. Scores in the destination will be
aggregated based on the ``aggregate``, or SUM if none is provided.
"""
- return self._zaggregate('ZINTER', dest, keys, aggregate)
+ return self._zaggregate('ZINTERSTORE', dest, keys, aggregate)
def zrange(self, name, start, end, desc=False, withscores=False):
"""
@@ -1022,7 +1022,7 @@ class Redis(threading.local):
a new sorted set, ``dest``. Scores in the destination will be
aggregated based on the ``aggregate``, or SUM if none is provided.
"""
- return self._zaggregate('ZUNION', dest, keys, aggregate)
+ return self._zaggregate('ZUNIONSTORE', dest, keys, aggregate)
def _zaggregate(self, command, dest, keys, aggregate=None):
pieces = [command, dest, len(keys)]