Skip to main content
On a new array, appends start at index zero. ARSET and ARMSET leave the cursor unchanged, so appending after positional writes can overwrite values. Use ARSEEK to choose the next append index.

Arguments

string
required
The array key.
...TData[]
required
One or more values to write.

Response

The index where the last value was written, as a string in TypeScript or an integer in Python.
See the server command reference for protocol details.