Skip to main content

XRANGE

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

Arguments#

keystrrequired#

The key of the stream.

startstr#

The stream entry ID to start from. Use "-" for the first available ID.

Default: "-"

endstr#

The stream entry ID to end at. Use "+" for the last available ID.

Default: "+"

countint#

The maximum number of entries to return.

Response#

List[Tuple[str, List[str]]]

A list of stream entries, where each entry is a tuple containing the stream ID and its associated fields and values.

Was this page helpful?