Skip to main content

ARINFO

Inspect array size, storage layout, and append position.
1 min read

Arguments#

keystrrequired#

The array key.

fullbool#

Include per-slice statistics. Defaults to False. Enabling this walks the whole array.

Response#

Dict[str, int | float]required

An object with camelCase field names in TypeScript, or a dictionary with snake_case field names in Python. A missing key raises an error.

FieldTypeMeaning
lenintHighest occupied index plus one.
countintNumber of occupied slots.
slice_sizeintIndexes covered by one slice.
slicesintAllocated slices.
directory_sizeintSlice directory entries.
super_dir_entriesintTop-level directory entries.
next_insert_indexintNext append position.
dense_slicesintDense slices. Only with full statistics.
sparse_slicesintSparse slices. Only with full statistics.
avg_dense_sizefloatAverage values per dense slice. Only with full statistics.
avg_dense_fillfloatAverage dense-slice fill ratio. Only with full statistics.
avg_sparse_sizefloatAverage values per sparse slice. Only with full statistics.

See the server command reference for protocol details.

Was this page helpful?