Skip to main content

ARINFO

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

Arguments#

keystringrequired#

The array key.

optionsObject#
fullboolean#

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

Response#

ArInfoResultrequired

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
lenstringHighest occupied index plus one.
countnumberNumber of occupied slots.
sliceSizenumberIndexes covered by one slice.
slicesnumberAllocated slices.
directorySizenumberSlice directory entries.
superDirEntriesnumberTop-level directory entries.
nextInsertIndexstringNext append position.
denseSlicesnumberDense slices. Only with full statistics.
sparseSlicesnumberSparse slices. Only with full statistics.
avgDenseSizenumberAverage values per dense slice. Only with full statistics.
avgDenseFillnumberAverage dense-slice fill ratio. Only with full statistics.
avgSparseSizenumberAverage values per sparse slice. Only with full statistics.

See the server command reference for protocol details.

Was this page helpful?