Class LPopCommandKt
-
- All Implemented Interfaces:
public final class LPopCommandKt
-
-
Method Summary
Modifier and Type Method Description final static ValkeyRequestlpopCommand(String key, Function1<StreamWithLength, Unit> onResult)final static ValkeyRequestlpopCommand(String key, Long count, ElementSink<StreamWithLength> sink)-
-
Method Detail
-
lpopCommand
final static ValkeyRequest lpopCommand(String key, Function1<StreamWithLength, Unit> onResult)
- Parameters:
onResult-called with the first element, or null if the key does not exist
-
lpopCommand
final static ValkeyRequest lpopCommand(String key, Long count, ElementSink<StreamWithLength> sink)
- Parameters:
sink-called once per popped element (none if the key does not exist). The stream is read directly from the connection and is only valid until the callback returns, unread parts are skipped.
-
-
-
-