ARRING
Since 1.1.0Arrays
Syntax
ARRING key size value [value ...]Writes values into a ring buffer of size slots: the cursor wraps around at size, so newer values overwrite the oldest. Giving a smaller size truncates it.
Reply
- The index of the last value written.
Examples
> ARRING r 3 a b c d e
(integer) 1
> ARGETRANGE r 0 2
1) "d"
2) "e"
3) "c"