Class LMPopCommandKt
-
- All Implemented Interfaces:
public final class LMPopCommandKt
-
-
Method Summary
Modifier and Type Method Description final static RedisRequestlmpopCommand(Collection<String> keys, ListDirection direction, Long count, EntrySink<StreamWithLength> entrySink)Pops elements from the first non-empty list of keys. -
-
Method Detail
-
lmpopCommand
final static RedisRequest lmpopCommand(Collection<String> keys, ListDirection direction, Long count, EntrySink<StreamWithLength> entrySink)
Pops elements from the first non-empty list of keys.
- Parameters:
count-optional, the maximum number of elements to pop (defaults to 1)
entrySink-EntrySink.onEntry is called once per popped element with the name of the list it was popped from, then EntrySink.onComplete is called once (also when nothing was popped). The stream is read directly from the connection and is only valid until the callback returns, unread parts are skipped.
-
-
-
-