Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNasreddine Bouafif <n.bouafif@owlient.eu>2010-03-17 20:57:12 +0300
committerNasreddine Bouafif <n.bouafif@owlient.eu>2010-03-17 20:57:12 +0300
commit1dd54ad00be6ef42b703ef4034685f2ba8c7b2bd (patch)
treee5d308cdbe1f9e103828658b9163a1cd387f46a3 /README.markdown
parentf2ad04deea917c6b13865a34c60939f09b61887d (diff)
parentddd08bfadd5683061fa2df20b2f8515ab5ad60ed (diff)
Merge branch 'master' of git@github.com:owlient/phpredis
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 1c95f382..82c11caa 100644
--- a/README.markdown
+++ b/README.markdown
@@ -1220,7 +1220,9 @@ Returns the elements of the sorted set stored at the specified key which have sc
*key*
*start*: double
*end*: double
+*options*: array
+Two options are available: `withscores => TRUE`, and `limit => array($offset, $count)`
##### *Return value*
*Array* containing the values in specified range.
##### *Example*
@@ -1229,6 +1231,10 @@ $redis->zAdd('key', 0, 'val0');
$redis->zAdd('key', 2, 'val2');
$redis->zAdd('key', 10, 'val10');
$redis->zRangeByScore('key', 0, 3); /* array('val0', 'val2') */
+$redis->zRangeByScore('key', 0, 3, array('withscores' => TRUE); /* array('val0' => 0, 'val2' => 2) */
+$redis->zRangeByScore('key', 0, 3, array('limit' => array(1, 1)); /* array('val2' => 2) */
+$redis->zRangeByScore('key', 0, 3, array('limit' => array(1, 1)); /* array('val2') */
+$redis->zRangeByScore('key', 0, 3, array('withscores' => TRUE, 'limit' => array(1, 1)); /* array('val2' => 2) */
</pre>
## zDeleteRangeByScore, zRemoveRangeByScore