diff options
author | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-08-31 22:30:05 +0400 |
---|---|---|
committer | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-08-31 22:30:05 +0400 |
commit | 4647f0d149d5a913f7b9c73c51e564ad6cca7eb5 (patch) | |
tree | 9d70e0bcd9ff0829efdfbc4b80c21c8f12250804 /README.markdown | |
parent | aeba44699a78b2958593c22ec5f8be94530541d9 (diff) |
Added new range support for ZRANGEBYSCORE, ZCOUNT.
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/README.markdown b/README.markdown index 8a99940b..979c2c21 100644 --- a/README.markdown +++ b/README.markdown @@ -1286,11 +1286,11 @@ $redis->zReverseRange('key', 0, -1, true); /* array('val10' => 10, 'val2' => 2, ## zRangeByScore ##### *Description* -Returns the elements of the sorted set stored at the specified key which have scores in the range [start,end]. +Returns the elements of the sorted set stored at the specified key which have scores in the range [start,end]. Adding a parenthesis before `start` or `end` excludes it from the range. +inf and -inf are also valid limits. ##### *Parameters* *key* -*start*: double -*end*: double +*start*: string +*end*: string *options*: array Two options are available: `withscores => TRUE`, and `limit => array($offset, $count)` @@ -1310,11 +1310,11 @@ $redis->zRangeByScore('key', 0, 3, array('withscores' => TRUE, 'limit' => array( ## zCount ##### *Description* -Returns the *number* of elements of the sorted set stored at the specified key which have scores in the range [start,end]. +Returns the *number* of elements of the sorted set stored at the specified key which have scores in the range [start,end]. Adding a parenthesis before `start` or `end` excludes it from the range. +inf and -inf are also valid limits. ##### *Parameters* *key* -*start*: double -*end*: double +*start*: string +*end*: string ##### *Return value* *LONG* the size of a corresponding zRangeByScore. |