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#
The array key.
The number of slots in the ring. Must be greater than zero.
One or more values to write. Values may be strings, integers, floats, or booleans.
Response#
intrequired
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.