Skip to main content

ARLASTITEMS

Read the most recently appended array values.
1 min read

Reads walk backward from the append cursor and wrap at index zero. Positional writes do not move that cursor.

Arguments#

keystringrequired#

The array key.

countnumberrequired#

The maximum number of values to return. Must be nonnegative and is capped at the number of stored values.

optionsObject#
revboolean#

Return newest values first. Defaults to false.

Response#

(TData | null)[]required

Values in oldest-first order, or newest-first when rev is enabled. Empty slots are returned as null (TypeScript) / None (Python). A missing key returns an empty list.

Values use the SDK's automatic deserialization. Use TData to describe stored JSON values; it defaults to string.

See the server command reference for protocol details.

Was this page helpful?