Class ZPopMaxKt
-
- All Implemented Interfaces:
public final class ZPopMaxKt
-
-
Method Summary
Modifier and Type Method Description final static List<Pair<String, Double>>zpopmaxString(ValkeyConnection $self, String key, Long count)final static List<Pair<String, Double>>zpopmaxString(ValkeyConnectionPool $self, String key, Long count)final static UnitzpopmaxString(ValkeyPipelineBuilder $self, String key, Long count, Function1<List<Pair<String, Double>>, Unit> onResult)final static List<Pair<ByteArray, Double>>zpopmaxBytes(ValkeyConnection $self, String key, Long count)final static List<Pair<ByteArray, Double>>zpopmaxBytes(ValkeyConnectionPool $self, String key, Long count)final static UnitzpopmaxBytes(ValkeyPipelineBuilder $self, String key, Long count, Function1<List<Pair<ByteArray, Double>>, Unit> onResult)final static UnitzpopmaxStreaming(ValkeyConnection $self, String key, Long count, ScoredElementSink<StreamWithLength> sink)final static UnitzpopmaxStreaming(ValkeyPipelineBuilder $self, String key, Long count, ScoredElementSink<StreamWithLength> sink)-
-
Method Detail
-
zpopmaxString
final static List<Pair<String, Double>> zpopmaxString(ValkeyConnection $self, String key, Long count)
-
zpopmaxString
final static List<Pair<String, Double>> zpopmaxString(ValkeyConnectionPool $self, String key, Long count)
-
zpopmaxString
final static Unit zpopmaxString(ValkeyPipelineBuilder $self, String key, Long count, Function1<List<Pair<String, Double>>, Unit> onResult)
- Parameters:
count-optional, the maximum number of members to remove. If not set, at most one member is removed
onResult-called with the removed members and their scores, highest score first (empty if the key does not exist)
-
zpopmaxBytes
final static List<Pair<ByteArray, Double>> zpopmaxBytes(ValkeyConnection $self, String key, Long count)
-
zpopmaxBytes
final static List<Pair<ByteArray, Double>> zpopmaxBytes(ValkeyConnectionPool $self, String key, Long count)
-
zpopmaxBytes
final static Unit zpopmaxBytes(ValkeyPipelineBuilder $self, String key, Long count, Function1<List<Pair<ByteArray, Double>>, Unit> onResult)
-
zpopmaxStreaming
final static Unit zpopmaxStreaming(ValkeyConnection $self, String key, Long count, ScoredElementSink<StreamWithLength> sink)
-
zpopmaxStreaming
final static Unit zpopmaxStreaming(ValkeyPipelineBuilder $self, String key, Long count, ScoredElementSink<StreamWithLength> sink)
-
-
-
-