Skip to main content

ARGETRANGE

Read every slot in an inclusive array range.
1 min read

A start greater than the end returns values in reverse index order. The server rejects ranges containing more than 1,000,000 indexes. Use ARSCAN for sparse ranges.

Arguments#

keystrrequired#

The array key.

startintrequired#

The first index of the inclusive range.

endintrequired#

The last index of the inclusive range.

Response#

List[Optional[str]]required

One value per index in the range, including null (TypeScript) / None (Python) for empty slots.

See the server command reference for protocol details.

Was this page helpful?