Skip to main content
For sparse arrays, this differs from ARLEN, which returns the highest occupied index plus one.

Arguments

string
required
The array key.

Response

The number of slots containing values, or zero for a missing key.
See the server command reference for protocol details.