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#

keystringrequired#

The array key.

startnumber | stringrequired#

The first index of the inclusive range.

endnumber | stringrequired#

The last index of the inclusive range.

Response#

(TData | null)[]required

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

Values use the SDK's automatic deserialization. Use TData to describe stored JSON values; it defaults to string.

See the server command reference for protocol details.

Was this page helpful?