Class ZRandMemberKt
-
- All Implemented Interfaces:
public final class ZRandMemberKt
-
-
Method Summary
-
-
Method Detail
-
zrandmemberString
final static List<String> zrandmemberString(ValkeyConnection $self, String key, Long count)
-
zrandmemberString
final static List<String> zrandmemberString(ValkeyConnectionPool $self, String key, Long count)
-
zrandmemberString
final static Unit zrandmemberString(ValkeyPipelineBuilder $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(ValkeyConnection $self, String key, Long count)
-
zrandmemberBytes
final static List<ByteArray> zrandmemberBytes(ValkeyConnectionPool $self, String key, Long count)
-
zrandmemberBytes
final static Unit zrandmemberBytes(ValkeyPipelineBuilder $self, String key, Long count, Function1<List<ByteArray>, Unit> onResult)
-
zrandmemberStreaming
final static Unit zrandmemberStreaming(ValkeyConnection $self, String key, Long count, ElementSink<StreamWithLength> sink)
-
zrandmemberStreaming
final static Unit zrandmemberStreaming(ValkeyPipelineBuilder $self, String key, Long count, ElementSink<StreamWithLength> sink)
-
zrandmemberWithScoresString
final static List<Pair<String, Double>> zrandmemberWithScoresString(ValkeyConnection $self, String key, Long count)
-
zrandmemberWithScoresString
final static List<Pair<String, Double>> zrandmemberWithScoresString(ValkeyConnectionPool $self, String key, Long count)
-
zrandmemberWithScoresString
final static Unit zrandmemberWithScoresString(ValkeyPipelineBuilder $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(ValkeyConnection $self, String key, Long count)
-
zrandmemberWithScoresBytes
final static List<Pair<ByteArray, Double>> zrandmemberWithScoresBytes(ValkeyConnectionPool $self, String key, Long count)
-
zrandmemberWithScoresBytes
final static Unit zrandmemberWithScoresBytes(ValkeyPipelineBuilder $self, String key, Long count, Function1<List<Pair<ByteArray, Double>>, Unit> onResult)
-
zrandmemberWithScoresStreaming
final static Unit zrandmemberWithScoresStreaming(ValkeyConnection $self, String key, Long count, ScoredElementSink<StreamWithLength> sink)
-
zrandmemberWithScoresStreaming
final static Unit zrandmemberWithScoresStreaming(ValkeyPipelineBuilder $self, String key, Long count, ScoredElementSink<StreamWithLength> sink)
-
-
-
-