Class SPopCommandKt
-
- All Implemented Interfaces:
public final class SPopCommandKt
-
-
Method Summary
Modifier and Type Method Description final static RedisRequestspopCommand(String key, Long count, ElementSink<StreamWithLength> sink)Removes and returns random members of the set. -
-
Method Detail
-
spopCommand
final static RedisRequest spopCommand(String key, Long count, ElementSink<StreamWithLength> sink)
Removes and returns random members of the set.
- Parameters:
count-optional, the maximum number of members to remove. If not set, at most one member is removed
sink-called once per removed member (none if the key does not exist). The stream is read directly from the connection and is only valid until the callback returns, unread parts are skipped.
-
-
-
-