ARINFO

ARINFO key [FULL]
Available since:
Redis Open Source 8.8.0
Time complexity:
O(1), or O(N) with FULL option where N is the number of slices.
ACL categories:
ARRAY,

Returns metadata about an array.

Required arguments

key

The name of the key that holds the array.

Optional arguments

FULL

When present, includes per-slice statistics in the reply: the number of dense and sparse slices and their average sizes and fill rates. Raises the complexity from O(1) to O(N) where N is the number of slices.

Examples

ARMSET myarray 0 "a" 1 "b" 100 "c" ARINSERT myarray "d" ARINFO myarray

Return information

RATE THIS PAGE
Back to top ↑