summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xredis.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/redis.py b/redis.py
index 27d0f39..b191f85 100755
--- a/redis.py
+++ b/redis.py
@@ -1079,6 +1079,12 @@ class Redis(object):
1
>>> r.zrangebyscore('z1', 5, 7)
[u'a', u'c']
+ >>> r.zadd('z1', 'e', 8)
+ 1
+ >>> r.zrangebyscore('z1', 5, 8, offset=0, count=2)
+ [u'a', u'c']
+ >>> r.zrangebyscore('z1', 5, 8, offset=1, count=2)
+ [u'c', u'e']
"""
if offset is not None and count is not None:
limit = " LIMIT %d %d" % (offset, count)