Skip to main content

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

Arguments#

keystrrequired#

The array key.

Response#

intrequired

The number of slots containing values, or zero for a missing key.

See the server command reference for protocol details.