summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorKonstantin Merenkov <kmerenkov@gmail.com>2010-08-13 00:48:50 +0800
committerAndy McCurdy <andy@andymccurdy.com>2010-08-17 06:44:35 +0800
commita12eb8c6d0d729852cafc1be17a6b22e9107946c (patch)
tree7886e3f56e2583378f87331ad64e1ae9fe886658 /redis/client.py
parent37321e9abf8c01486d9a26e0687177c4f3cf1958 (diff)
downloadredis-py-a12eb8c6d0d729852cafc1be17a6b22e9107946c.tar.gz
New command: zcount
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py
index 41a9660..8f63343 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -935,6 +935,9 @@ class Redis(threading.local):
"Return the number of elements in the sorted set ``name``"
return self.execute_command('ZCARD', name)
+ def zcount(self, name, min, max):
+ return self.execute_command('ZCOUNT', name, min, max)
+
def zincr(self, key, member, value=1):
"This has been deprecated, use zincrby instead"
warnings.warn(DeprecationWarning(