Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Arguments

key
string
required
The key of the stream.
end
string
required
The stream entry ID to end at (highest ID).
start
string
required
The stream entry ID to start from (lowest ID).
count
number
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"
  }
}