Class ArRingCommandKt
-
- All Implemented Interfaces:
public final class ArRingCommandKt
-
-
Method Summary
Modifier and Type Method Description final static RedisRequestarringCommand(String key, Long size, Collection<StreamWithLength> values, Function1<Long, Unit> onResult)Inserts values into a ring buffer of size elements: the insert cursor wraps around to 0 at size. -
-
Method Detail
-
arringCommand
final static RedisRequest arringCommand(String key, Long size, Collection<StreamWithLength> values, Function1<Long, Unit> onResult)
Inserts values into a ring buffer of size elements: the insert cursor wraps around to 0 at size. An existing array with more than size elements is shrunk to size elements first.
- Parameters:
onResult-called with the index of the last inserted value
-
-
-
-