Skip to main content

XREVRANGE

Returns stream entries matching a given range of IDs in reverse order.
1 min read

Arguments#

keystrrequired#

The key of the stream.

endstr#

The stream entry ID to end at (highest ID).

Default: "+"

startstr#

The stream entry ID to start from (lowest ID).

Default: "-"

countint#

The maximum number of entries to return.

Response#

List[List[Any]]

Returns a list of stream entries in reverse chronological order. Each entry contains the ID and field-value pairs.

Was this page helpful?