Class ZPopCommandKt
-
- All Implemented Interfaces:
public final class ZPopCommandKt
-
-
Method Summary
Modifier and Type Method Description final static RedisRequestzpopmaxCommand(String key, Long count, ScoredElementSink<StreamWithLength> sink)Removes and returns the members with the highest scores. final static RedisRequestzpopminCommand(String key, Long count, ScoredElementSink<StreamWithLength> sink)Removes and returns the members with the lowest scores. -
-
Method Detail
-
zpopmaxCommand
final static RedisRequest zpopmaxCommand(String key, Long count, ScoredElementSink<StreamWithLength> sink)
Removes and returns the members with the highest scores.
- Parameters:
count-optional, the maximum number of members to remove. If not set, at most one member is removed
sink-called once per removed member, highest score first (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.
-
zpopminCommand
final static RedisRequest zpopminCommand(String key, Long count, ScoredElementSink<StreamWithLength> sink)
Removes and returns the members with the lowest scores.
- Parameters:
count-optional, the maximum number of members to remove. If not set, at most one member is removed
sink-called once per removed member, lowest score first (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.
-
-
-
-