diff options
Diffstat (limited to 'iredis/data/commands/xrevrange.md')
-rw-r--r-- | iredis/data/commands/xrevrange.md | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/iredis/data/commands/xrevrange.md b/iredis/data/commands/xrevrange.md index e7c317d..d61b3f5 100644 --- a/iredis/data/commands/xrevrange.md +++ b/iredis/data/commands/xrevrange.md @@ -1,16 +1,16 @@ This command is exactly like `XRANGE`, but with the notable difference of -returning the entries in reverse order, and also taking the start-end range in -reverse order: in `XREVRANGE` you need to state the _end_ ID and later the -_start_ ID, and the command will produce all the element between (or exactly -like) the two IDs, starting from the _end_ side. +returning the entries in reverse order, and also taking the start-end +range in reverse order: in `XREVRANGE` you need to state the *end* ID +and later the *start* ID, and the command will produce all the element +between (or exactly like) the two IDs, starting from the *end* side. -So for instance, to get all the elements from the higher ID to the lower ID one -could use: +So for instance, to get all the elements from the higher ID to the lower +ID one could use: XREVRANGE somestream + - -Similarly to get just the last element added into the stream it is enough to -send: +Similarly to get just the last element added into the stream it is +enough to send: XREVRANGE somestream + - COUNT 1 @@ -18,15 +18,11 @@ send: @array-reply, specifically: -The command returns the entries with IDs matching the specified range, from the -higher ID to the lower ID matching. The returned entries are complete, that -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. +The command returns the entries with IDs matching the specified range, +from the higher ID to the lower ID matching. +The returned entries are complete, that 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. @examples |