Class ZPopMaxKt
-
- All Implemented Interfaces:
public final class ZPopMaxKt
-
-
Method Summary
Modifier and Type Method Description final static List<Pair<String, Double>>zpopmaxString(RedisConnection $self, String key, Long count)final static List<Pair<String, Double>>zpopmaxString(RedisConnectionPool $self, String key, Long count)final static UnitzpopmaxString(RedisPipelineBuilder $self, String key, Long count, Function1<List<Pair<String, Double>>, Unit> onResult)final static List<Pair<ByteArray, Double>>zpopmaxBytes(RedisConnection $self, String key, Long count)final static List<Pair<ByteArray, Double>>zpopmaxBytes(RedisConnectionPool $self, String key, Long count)final static UnitzpopmaxBytes(RedisPipelineBuilder $self, String key, Long count, Function1<List<Pair<ByteArray, Double>>, Unit> onResult)final static UnitzpopmaxStreaming(RedisConnection $self, String key, Long count, ScoredElementSink<StreamWithLength> sink)final static UnitzpopmaxStreaming(RedisPipelineBuilder $self, String key, Long count, ScoredElementSink<StreamWithLength> sink)-
-
Method Detail
-
zpopmaxString
final static List<Pair<String, Double>> zpopmaxString(RedisConnection $self, String key, Long count)
-
zpopmaxString
final static List<Pair<String, Double>> zpopmaxString(RedisConnectionPool $self, String key, Long count)
-
zpopmaxString
final static Unit zpopmaxString(RedisPipelineBuilder $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(RedisConnection $self, String key, Long count)
-
zpopmaxBytes
final static List<Pair<ByteArray, Double>> zpopmaxBytes(RedisConnectionPool $self, String key, Long count)
-
zpopmaxBytes
final static Unit zpopmaxBytes(RedisPipelineBuilder $self, String key, Long count, Function1<List<Pair<ByteArray, Double>>, Unit> onResult)
-
zpopmaxStreaming
final static Unit zpopmaxStreaming(RedisConnection $self, String key, Long count, ScoredElementSink<StreamWithLength> sink)
-
zpopmaxStreaming
final static Unit zpopmaxStreaming(RedisPipelineBuilder $self, String key, Long count, ScoredElementSink<StreamWithLength> sink)
-
-
-
-