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 to of the stream.
start
string
required
The stream entry ID to start from.
end
string
required
The stream entry ID to end at.
count
number
The maximum number of entries to return.

Response

An object of stream entries, keyed by their stream ID
const result = await redis.xrange("mystream", "-", "+");
{
  "1548149259438-0": {
    "field1": "value1",
    "field2": "value2"
  },
  "1548149259438-1": {
    "field1": "value3",
    "field2": "value4"
  }
}