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

str
required
The array key.
int
required
The number of slots in the ring. Must be greater than zero.
*values: ValueT
required
One or more values to write. Values may be strings, integers, floats, or booleans.

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.