diff options
author | andy <andy@whiskeymedia.com> | 2010-01-18 12:57:04 -0800 |
---|---|---|
committer | andy <andy@whiskeymedia.com> | 2010-01-18 12:57:04 -0800 |
commit | a9bff80ec2d04f70c1e2bed50b70b0168ef8f8c8 (patch) | |
tree | 0485ff0c120a4e0357c19c8f04e892e8cc8999f1 | |
parent | 688ecada1e112bfa59bcdf829c5c23cdbf61c08b (diff) | |
download | redis-py-a9bff80ec2d04f70c1e2bed50b70b0168ef8f8c8.tar.gz |
Added offset/count optional parameters to zrangebyscore. Thanks Adam Charnock!
-rwxr-xr-x | redis.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |