Skip to main content

XREVRANGE

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

Arguments#

keystringrequired#

The key of the stream.

endstringrequired#

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

startstringrequired#

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

countnumber#

The maximum number of entries to return.

Response#

Record<string, Record<string, unknown>>

An object of stream entries in reverse chronological order, keyed by their stream ID.

Was this page helpful?