Skip to main content
Writes wrap to index zero when the ring is full and overwrite the oldest values. Calling this command with a different size reshapes the ring.

Arguments

string
required
The array key.
number
required
The number of slots in the ring. Must be greater than zero.
...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.