summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/xrevrange.md
diff options
context:
space:
mode:
Diffstat (limited to 'iredis/data/commands/xrevrange.md')
-rw-r--r--iredis/data/commands/xrevrange.md52
1 files changed, 4 insertions, 48 deletions
diff --git a/iredis/data/commands/xrevrange.md b/iredis/data/commands/xrevrange.md
index 35d7438..e7c317d 100644
--- a/iredis/data/commands/xrevrange.md
+++ b/iredis/data/commands/xrevrange.md
@@ -14,54 +14,6 @@ send:
XREVRANGE somestream + - COUNT 1
-## Iterating with XREVRANGE
-
-Like `XRANGE` this command can be used in order to iterate the whole stream
-content, however note that in this case, the next command calls should use the
-ID of the last entry, with the sequence number decremented by one. However if
-the sequence number is already 0, the time part of the ID should be decremented
-by 1, and the sequence part should be set to the maximum possible sequence
-number, that is, 18446744073709551615, or could be omitted at all, and the
-command will automatically assume it to be such a number (see `XRANGE` for more
-info about incomplete IDs).
-
-Example:
-
-```
-> XREVRANGE writers + - COUNT 2
-1) 1) 1526985723355-0
- 2) 1) "name"
- 2) "Ngozi"
- 3) "surname"
- 4) "Adichie"
-2) 1) 1526985712947-0
- 2) 1) "name"
- 2) "Agatha"
- 3) "surname"
- 4) "Christie"
-```
-
-The last ID returned is `1526985712947-0`, since the sequence number is already
-zero, the next ID I'll use instead of the `+` special ID will be
-`1526985712946-18446744073709551615`, or just `18446744073709551615`:
-
-```
-> XREVRANGE writers 1526985712946-18446744073709551615 - COUNT 2
-1) 1) 1526985691746-0
- 2) 1) "name"
- 2) "Toni"
- 3) "surname"
- 4) "Morrison"
-2) 1) 1526985685298-0
- 2) 1) "name"
- 2) "Jane"
- 3) "surname"
- 4) "Austen"
-```
-
-And so for until the iteration is complete and no result is returned. See the
-`XRANGE` page about iterating for more information.
-
@return
@array-reply, specifically:
@@ -72,6 +24,10 @@ means that the ID and all the fields they are composed are returned. Moreover
the entries are returned with their fields and values in the exact same order as
`XADD` added them.
+@history
+
+- `>= 6.2` Added exclusive ranges.
+
@examples
```cli