Skip to main content

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

Arguments#

keystringrequired#

The array key.

Response#

numberrequired

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

See the server command reference for protocol details.