ARINSERT

Since 1.1.0Arrays

Syntax

ARINSERT key value [value ...]
  • Flags: write
  • ACL categories: @array, @slow, @write
  • Arity: -2

Writes values at the array's insert cursor, moving the cursor on one slot per value. A missing key is created, with the cursor at 0.

Reply

  • The index of the last value written.

Examples

> ARINSERT log first second
(integer) 1
> ARINSERT log third
(integer) 2
> ARNEXT log
(integer) 3