Skip to main content

Arguments

str
required
The array key.
int
required
The first index of the inclusive range.
int
required
The last index of the inclusive range.
int
Maximum number of occupied slots to return. If provided, it must be greater than zero.

Response

Index-value pairs for occupied slots. Empty slots are skipped; a missing key returns an empty list. TypeScript returns indexes as strings; Python returns integers.
See the server command reference for protocol details.