Class LPushXCommandKt
-
- All Implemented Interfaces:
public final class LPushXCommandKt
-
-
Method Summary
Modifier and Type Method Description final static RedisRequestlpushxCommand(String key, Collection<StreamWithLength> elements, Function1<Long, Unit> onResult)Inserts elements at the head of the list, only if the key already exists. -
-
Method Detail
-
lpushxCommand
final static RedisRequest lpushxCommand(String key, Collection<StreamWithLength> elements, Function1<Long, Unit> onResult)
Inserts elements at the head of the list, only if the key already exists.
- Parameters:
onResult-called with the length of the list after the push operation (0 if the key does not exist)
-
-
-
-