diff options
author | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-04-22 19:02:33 +0400 |
---|---|---|
committer | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-04-22 19:02:33 +0400 |
commit | 319a14668b7425daef68aba7ef42092c5744e33e (patch) | |
tree | 9675e5fd2716ec12ef684555baa785e0c2118f52 /README.markdown | |
parent | 2620e106d3e10c74707ebc508c6525507b0c030c (diff) |
Added withscores=false in zRange, zReverseRange.
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown index d27ff99f..92991806 100644 --- a/README.markdown +++ b/README.markdown @@ -1164,6 +1164,7 @@ Returns a range of elements from the ordered set stored at the specified key, wi *key* *start*: long *end*: long +*withscores*: bool = false ##### *Return value* *Array* containing the values in specified range. @@ -1173,6 +1174,9 @@ $redis->zAdd('key1', 0, 'val0'); $redis->zAdd('key1', 2, 'val2'); $redis->zAdd('key1', 10, 'val10'); $redis->zRange('key1', 0, -1); /* array('val0', 'val2', 'val10') */ + +// with scores +$redis->zRange('key1', 0, -1, true); /* array('val0' => 0, 'val2' => 2, 'val10' => 10) */ </pre> ## zDelete, zRemove @@ -1201,7 +1205,9 @@ Returns the elements of the sorted set stored at the specified key in the range ##### *Parameters* *key* -*member* +*start*: long +*end*: long +*withscores*: bool = false ##### *Return value* *Array* containing the values in specified range. @@ -1211,6 +1217,9 @@ $redis->zAdd('key', 0, 'val0'); $redis->zAdd('key', 2, 'val2'); $redis->zAdd('key', 10, 'val10'); $redis->zReverseRange('key', 0, -1); /* array('val10', 'val2', 'val0') */ + +// with scores +$redis->zReverseRange('key', 0, -1, true); /* array('val10' => 10, 'val2' => 2, 'val0' => 0) */ </pre> ## zRangeByScore |