Class SPopKt
-
- All Implemented Interfaces:
public final class SPopKt
-
-
Method Summary
Modifier and Type Method Description final static List<String>spopString(RedisConnection $self, String key, Long count)final static List<String>spopString(RedisConnectionPool $self, String key, Long count)final static UnitspopString(RedisPipelineBuilder $self, String key, Long count, Function1<List<String>, Unit> onResult)final static List<ByteArray>spopBytes(RedisConnection $self, String key, Long count)final static List<ByteArray>spopBytes(RedisConnectionPool $self, String key, Long count)final static UnitspopBytes(RedisPipelineBuilder $self, String key, Long count, Function1<List<ByteArray>, Unit> onResult)final static UnitspopStreaming(RedisConnection $self, String key, Long count, ElementSink<StreamWithLength> sink)final static UnitspopStreaming(RedisPipelineBuilder $self, String key, Long count, ElementSink<StreamWithLength> sink)-
-
Method Detail
-
spopString
final static List<String> spopString(RedisConnection $self, String key, Long count)
-
spopString
final static List<String> spopString(RedisConnectionPool $self, String key, Long count)
-
spopString
final static Unit spopString(RedisPipelineBuilder $self, String key, Long count, Function1<List<String>, 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 random members (empty if the key does not exist)
-
spopBytes
final static Unit spopBytes(RedisPipelineBuilder $self, String key, Long count, Function1<List<ByteArray>, Unit> onResult)
-
spopStreaming
final static Unit spopStreaming(RedisConnection $self, String key, Long count, ElementSink<StreamWithLength> sink)
-
spopStreaming
final static Unit spopStreaming(RedisPipelineBuilder $self, String key, Long count, ElementSink<StreamWithLength> sink)
-
-
-
-