Arguments
The stream entry ID to end at (highest ID).
The stream entry ID to start from (lowest ID).
The maximum number of entries to return.
Response
An object of stream entries in reverse chronological order, keyed by their stream ID.
const result = await redis.xrevrange("mystream", "+", "-");
{
"1638360173533-4": {
"field1": "value5",
"field2": "value6"
},
"1638360173533-3": {
"field1": "value3",
"field2": "value4"
},
"1638360173533-0": {
"field1": "value1",
"field2": "value2"
}
}