Class ZRandMemberKt
-
- All Implemented Interfaces:
public final class ZRandMemberKt
-
-
Method Summary
-
-
Method Detail
-
zrandmemberString
final static List<String> zrandmemberString(RedisConnection $self, String key, Long count)
-
zrandmemberString
final static List<String> zrandmemberString(RedisConnectionPool $self, String key, Long count)
-
zrandmemberString
final static Unit zrandmemberString(RedisPipelineBuilder $self, String key, Long count, Function1<List<String>, Unit> onResult)
- Parameters:
count-optional, the number of members to return. A positive count returns distinct members, a negative count may return the same member multiple times. If not set, at most one member is returned
onResult-called with the random members (empty if the key does not exist)
-
zrandmemberBytes
final static List<ByteArray> zrandmemberBytes(RedisConnection $self, String key, Long count)
-
zrandmemberBytes
final static List<ByteArray> zrandmemberBytes(RedisConnectionPool $self, String key, Long count)
-
zrandmemberBytes
final static Unit zrandmemberBytes(RedisPipelineBuilder $self, String key, Long count, Function1<List<ByteArray>, Unit> onResult)
-
zrandmemberStreaming
final static Unit zrandmemberStreaming(RedisConnection $self, String key, Long count, ElementSink<StreamWithLength> sink)
-
zrandmemberStreaming
final static Unit zrandmemberStreaming(RedisPipelineBuilder $self, String key, Long count, ElementSink<StreamWithLength> sink)
-
zrandmemberWithScoresString
final static List<Pair<String, Double>> zrandmemberWithScoresString(RedisConnection $self, String key, Long count)
-
zrandmemberWithScoresString
final static List<Pair<String, Double>> zrandmemberWithScoresString(RedisConnectionPool $self, String key, Long count)
-
zrandmemberWithScoresString
final static Unit zrandmemberWithScoresString(RedisPipelineBuilder $self, String key, Long count, Function1<List<Pair<String, Double>>, Unit> onResult)
- Parameters:
count-the number of members to return. A positive count returns distinct members, a negative count may return the same member multiple times
onResult-called with the random members and their scores (empty if the key does not exist)
-
zrandmemberWithScoresBytes
final static List<Pair<ByteArray, Double>> zrandmemberWithScoresBytes(RedisConnection $self, String key, Long count)
-
zrandmemberWithScoresBytes
final static List<Pair<ByteArray, Double>> zrandmemberWithScoresBytes(RedisConnectionPool $self, String key, Long count)
-
zrandmemberWithScoresBytes
final static Unit zrandmemberWithScoresBytes(RedisPipelineBuilder $self, String key, Long count, Function1<List<Pair<ByteArray, Double>>, Unit> onResult)
-
zrandmemberWithScoresStreaming
final static Unit zrandmemberWithScoresStreaming(RedisConnection $self, String key, Long count, ScoredElementSink<StreamWithLength> sink)
-
zrandmemberWithScoresStreaming
final static Unit zrandmemberWithScoresStreaming(RedisPipelineBuilder $self, String key, Long count, ScoredElementSink<StreamWithLength> sink)
-
-
-
-