Class LPopCommandKt
-
- All Implemented Interfaces:
public final class LPopCommandKt
-
-
Method Summary
Modifier and Type Method Description final static RedisRequestlpopCommand(String key, Function1<StreamWithLength, Unit> onResult)final static RedisRequestlpopCommand(String key, Long count, ElementSink<StreamWithLength> sink)-
-
Method Detail
-
lpopCommand
final static RedisRequest 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 RedisRequest 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.
-
-
-
-