Class SPopKt
-
- All Implemented Interfaces:
public final class SPopKt
-
-
Method Summary
Modifier and Type Method Description final static List<String>spopString(ValkeyConnection $self, String key, Long count)final static List<String>spopString(ValkeyConnectionPool $self, String key, Long count)final static UnitspopString(ValkeyPipelineBuilder $self, String key, Long count, Function1<List<String>, Unit> onResult)final static List<ByteArray>spopBytes(ValkeyConnection $self, String key, Long count)final static List<ByteArray>spopBytes(ValkeyConnectionPool $self, String key, Long count)final static UnitspopBytes(ValkeyPipelineBuilder $self, String key, Long count, Function1<List<ByteArray>, Unit> onResult)final static UnitspopStreaming(ValkeyConnection $self, String key, Long count, ElementSink<StreamWithLength> sink)final static UnitspopStreaming(ValkeyPipelineBuilder $self, String key, Long count, ElementSink<StreamWithLength> sink)-
-
Method Detail
-
spopString
final static List<String> spopString(ValkeyConnection $self, String key, Long count)
-
spopString
final static List<String> spopString(ValkeyConnectionPool $self, String key, Long count)
-
spopString
final static Unit spopString(ValkeyPipelineBuilder $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 List<ByteArray> spopBytes(ValkeyConnectionPool $self, String key, Long count)
-
spopBytes
final static Unit spopBytes(ValkeyPipelineBuilder $self, String key, Long count, Function1<List<ByteArray>, Unit> onResult)
-
spopStreaming
final static Unit spopStreaming(ValkeyConnection $self, String key, Long count, ElementSink<StreamWithLength> sink)
-
spopStreaming
final static Unit spopStreaming(ValkeyPipelineBuilder $self, String key, Long count, ElementSink<StreamWithLength> sink)
-
-
-
-