Upstash Documentation

XREAD

Reads data from one or multiple streams, starting from the specified IDs.
1 min read

Arguments#

keystring | string[]required#

The key(s) of the stream(s). Can be a single stream key or an array of stream keys.

idstring | string[]required#

The stream entry ID(s) to start reading from. Must match the number of keys provided. Use $ to read only new messages added after the command is issued.

options#
Show properties
countnumber#

The maximum number of messages to return per stream.

Response#