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:
authorAlexander Schranz <alexander@sulu.io>2018-11-26 20:32:56 +0300
committerMichael Grunder <michael.grunder@gmail.com>2018-11-26 20:32:56 +0300
commit74abde303edf558f72ed82e4f9c1eb72560d3055 (patch)
treeecfa4af7aaceb081926d2cc2b53c587dec41720d /README.markdown
parent3b56b7db33343f0852e41db9bff5a7880a4cc688 (diff)
updated xrange, xrevrange, xpending types (#1468)
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.markdown b/README.markdown
index c3d3f29b..e7c90a18 100644
--- a/README.markdown
+++ b/README.markdown
@@ -3464,7 +3464,7 @@ $obj_redis->xLen('mystream');
##### *Prototype*
~~~php
-$obj_redis->xPending($str_stream, $str_group [, $i_start, $i_end, $i_count, $str_consumer]);
+$obj_redis->xPending($str_stream, $str_group [, $str_start, $str_end, $i_count, $str_consumer]);
~~~
_**Description**_: Get information about pending messages in a given stream.
@@ -3475,7 +3475,7 @@ _**Description**_: Get information about pending messages in a given stream.
##### *Examples*
~~~php
$obj_redis->xPending('mystream', 'mygroup');
-$obj_redis->xPending('mystream', 'mygroup', 0, '+', 1, 'consumer-1');
+$obj_redis->xPending('mystream', 'mygroup', '-', '+', 1, 'consumer-1');
~~~
### xRange
@@ -3483,7 +3483,7 @@ $obj_redis->xPending('mystream', 'mygroup', 0, '+', 1, 'consumer-1');
##### *Prototype*
~~~php
-$obj_redis->xRange($str_stream, $i_start, $i_end [, $i_count]);
+$obj_redis->xRange($str_stream, $str_start, $str_end [, $i_count]);
~~~
_**Description**_: Get a range of messages from a given stream.
@@ -3569,7 +3569,7 @@ $obj_redis->xReadGroup('mygroup', 'consumer2', ['s1' => 0, 's2' => 0], 1, 1000);
##### *Prototype*
~~~php
-$obj_redis->xRevRange($str_stream, $i_end, $i_start [, $i_count]);
+$obj_redis->xRevRange($str_stream, $str_end, $str_start [, $i_count]);
~~~
_**Description**_: This is identical to xRange except the results come back in reverse order. Also note that Redis reverses the order of "start" and "end".