Class ZRankCommandKt
-
- All Implemented Interfaces:
public final class ZRankCommandKt
-
-
Method Summary
Modifier and Type Method Description final static ValkeyRequestzrankCommand(String key, StreamWithLength member, Function1<Long, Unit> onResult)final static ValkeyRequestzrankWithScoreCommand(String key, StreamWithLength member, Function1<Pair<Long, Double>, Unit> onResult)-
-
Method Detail
-
zrankCommand
final static ValkeyRequest zrankCommand(String key, StreamWithLength member, Function1<Long, Unit> onResult)
- Parameters:
onResult-called with the rank of member (0 is the lowest score), or null if it is not a member
-
zrankWithScoreCommand
final static ValkeyRequest zrankWithScoreCommand(String key, StreamWithLength member, Function1<Pair<Long, Double>, Unit> onResult)
- Parameters:
onResult-called with the rank of member (0 is the lowest score) and its score, or null if it is not a member
-
-
-
-