Interface ReactiveZSetCommands
- All Known Subinterfaces:
ReactiveClusterZSetCommands
public interface ReactiveZSetCommands
Redis Sorted Set commands executed using reactive infrastructure.
- Since:
- 2.0
- Author:
- Christoph Strobl, Mark Paluch, Andrey Shlykov
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBZPOPMIN/BZPOPMAX command parameters.static enumstatic classZADDcommand parameters.static classZINTER/ZUNIONcommand parameters.static classZINTERSTORE/ZUNIONSTOREcommand parameters.static classZCOUNTcommand parameters.static classZDIFFcommand parameters.static classZDIFFSTOREcommand parameters.static classZINCRBYcommand parameters.static classZINTERSTOREcommand parameters.static classZLEXCOUNTcommand parameters.static classZMSCOREcommand parameters.static classZPOPMIN/ZPOPMAX command parameters.static classZRANDMEMBERcommand parameters.static classZRANGEBYLEX/ZREVRANGEBYLEX command parameters.static classZRANGEBYSCORE/ZREVRANGEBYSCORE.static classZRANGE/ZREVRANGE command parameters.static classZRANGESTOREcommand parameters.static classZRANK/ZREVRANK command parameters.static classZREMcommand parameters.static classZREMRANGEBYLEXcommand parameters.static classZREMRANGEBYRANKcommand parameters.static classZREMRANGEBYSCOREcommand parameters.static classZSCOREcommand parameters.static classZUNIONSTOREcommand parameters. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.BZPopCommand,reactor.core.publisher.Flux<Tuple>>> bZPop(org.reactivestreams.Publisher<ReactiveZSetCommands.BZPopCommand> commands) Remove and return elements from sorted set atkeyCommand#getKey().default reactor.core.publisher.Mono<Tuple>bZPopMax(ByteBuffer key, Duration timeout) Remove and return the value with its score having the highest score from sorted set atkey.default reactor.core.publisher.Mono<Tuple>bZPopMin(ByteBuffer key, Duration timeout) Remove and return the value with its score having the lowest score from sorted set atkey.default reactor.core.publisher.Mono<Long>zAdd(ByteBuffer key, Double score, ByteBuffer value) Add value to a sorted set at key, or update its score if it already exists.default reactor.core.publisher.Mono<Long>zAdd(ByteBuffer key, Collection<? extends Tuple> tuples) Add a tuples to a sorted set at key, or update their score if it already exists.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZAddCommand,Number>> zAdd(org.reactivestreams.Publisher<ReactiveZSetCommands.ZAddCommand> commands) AddReactiveZSetCommands.ZAddCommand.getTuples()to a sorted set atReactiveRedisConnection.KeyCommand.getKey(), or update its score if it already exists.default reactor.core.publisher.Mono<Long>zCard(ByteBuffer key) Get the size of sorted set with key.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> zCard(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands) Get the size of sorted set with .default reactor.core.publisher.Mono<Long>zCount(ByteBuffer key, Range<Double> range) Count number of elements within sorted set with scores withinRange.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZCountCommand,Long>> zCount(org.reactivestreams.Publisher<ReactiveZSetCommands.ZCountCommand> commands) Count number of elements within sorted set with scores withinRange.default reactor.core.publisher.Flux<ByteBuffer>zDiff(List<ByteBuffer> sets) Diff sorted sets.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZDiffCommand,reactor.core.publisher.Flux<ByteBuffer>>> zDiff(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZDiffCommand> commands) Diff sorted sets.default reactor.core.publisher.Mono<Long>zDiffStore(ByteBuffer destinationKey, List<ByteBuffer> sets) Diff sorted sets and store result in destination destinationKey.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZDiffStoreCommand,Long>> zDiffStore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZDiffStoreCommand> commands) Diff sorted sets and store result in destination destinationKey.default reactor.core.publisher.Flux<Tuple>zDiffWithScores(List<ByteBuffer> sets) Diff sorted sets.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZDiffCommand,reactor.core.publisher.Flux<Tuple>>> zDiffWithScores(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZDiffCommand> commands) Diff sorted sets.default reactor.core.publisher.Mono<Double>zIncrBy(ByteBuffer key, Number increment, ByteBuffer value) Increment the score of element with value in sorted set by increment.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZIncrByCommand,Double>> zIncrBy(org.reactivestreams.Publisher<ReactiveZSetCommands.ZIncrByCommand> commands) Increment the score of element withReactiveZSetCommands.ZIncrByCommand.getValue()in sorted set byReactiveZSetCommands.ZIncrByCommand.getIncrement().default reactor.core.publisher.Flux<ByteBuffer>zInter(List<ByteBuffer> sets) Intersect sorted sets.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,reactor.core.publisher.Flux<ByteBuffer>>> zInter(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.default reactor.core.publisher.Mono<Long>zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets) Intersect sorted sets and store result in destination destinationKey.default reactor.core.publisher.Mono<Long>zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights) Intersect sorted sets and store result in destination destinationKey and apply weights to individual sets.default reactor.core.publisher.Mono<Long>zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights, Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.default reactor.core.publisher.Mono<Long>zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights) Intersect sorted sets and store result in destination destinationKey and apply weights to individual sets.default reactor.core.publisher.Mono<Long>zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights, Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZAggregateStoreCommand,Long>> zInterStore(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZAggregateStoreCommand> commands) Intersect sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.default reactor.core.publisher.Flux<Tuple>zInterWithScores(List<ByteBuffer> sets) Intersect sorted sets.default reactor.core.publisher.Flux<Tuple>zInterWithScores(List<ByteBuffer> sets, List<Double> weights) Intersect sorted sets and apply weights to individual sets.default reactor.core.publisher.Flux<Tuple>zInterWithScores(List<ByteBuffer> sets, List<Double> weights, Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.default reactor.core.publisher.Flux<Tuple>zInterWithScores(List<ByteBuffer> sets, Weights weights) Intersect sorted sets and apply weights to individual sets.default reactor.core.publisher.Flux<Tuple>zInterWithScores(List<ByteBuffer> sets, Weights weights, Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,reactor.core.publisher.Flux<Tuple>>> zInterWithScores(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.default reactor.core.publisher.Mono<Long>zLexCount(ByteBuffer key, Range<String> range) Count number of elements within sorted set with value betweenRange#minandRange#maxapplying lexicographical ordering.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZLexCountCommand,Long>> zLexCount(org.reactivestreams.Publisher<ReactiveZSetCommands.ZLexCountCommand> commands) Count number of elements within sorted set with value betweenRange#minandRange#maxapplying lexicographical ordering.zMScore(ByteBuffer key, Collection<ByteBuffer> values) Get the scores of elements with values from sorted set with key key.reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<ReactiveZSetCommands.ZMScoreCommand,Double>> zMScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZMScoreCommand> commands) Get the scores of elements withReactiveZSetCommands.ZMScoreCommand.getValues()from sorted set with keyReactiveRedisConnection.KeyCommand.getKey()reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZPopCommand,reactor.core.publisher.Flux<Tuple>>> zPop(org.reactivestreams.Publisher<ReactiveZSetCommands.ZPopCommand> commands) Remove and return elements from sorted set atkeyCommand#getKey().default reactor.core.publisher.Mono<Tuple>zPopMax(ByteBuffer key) Remove and return the value with its score having the highest score from sorted set atkey.default reactor.core.publisher.Flux<Tuple>zPopMax(ByteBuffer key, long count) Remove and returncountvalues with their score having the highest score from sorted set atkey.default reactor.core.publisher.Mono<Tuple>zPopMin(ByteBuffer key) Remove and return the value with its score having the lowest score from sorted set atkey.default reactor.core.publisher.Flux<Tuple>zPopMin(ByteBuffer key, long count) Remove and returncountvalues with their score having the lowest score from sorted set atkey.default reactor.core.publisher.Mono<ByteBuffer>zRandMember(ByteBuffer key) Get random element from sorted set atkey.default reactor.core.publisher.Flux<ByteBuffer>zRandMember(ByteBuffer key, long count) Getcountrandom elements from sorted set atkey.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRandMemberCommand,reactor.core.publisher.Flux<ByteBuffer>>> zRandMember(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRandMemberCommand> commands) Get random elements from sorted set atkey.default reactor.core.publisher.Mono<Tuple>Get random element from sorted set atkey.default reactor.core.publisher.Flux<Tuple>zRandMemberWithScore(ByteBuffer key, long count) Getcountrandom elements from sorted set atkey.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRandMemberCommand,reactor.core.publisher.Flux<Tuple>>> zRandMemberWithScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRandMemberCommand> commands) Get random elements from sorted set atkey.default reactor.core.publisher.Flux<ByteBuffer>zRange(ByteBuffer key, Range<Long> range) Get elements in range from sorted set.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeCommand,reactor.core.publisher.Flux<Tuple>>> zRange(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeCommand> commands) Get set ofTuples in range from sorted set.default reactor.core.publisher.Flux<ByteBuffer>zRangeByLex(ByteBuffer key, Range<String> range) Get all elements inRangefrom the sorted set at key in lexicographical ordering.default reactor.core.publisher.Flux<ByteBuffer>zRangeByLex(ByteBuffer key, Range<String> range, Limit limit) Get all elements inRangefrom the sorted set at key in lexicographical ordering.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeByLexCommand,reactor.core.publisher.Flux<ByteBuffer>>> zRangeByLex(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeByLexCommand> commands) Get all elements inRangefrom the sorted set at key in lexicographical ordering.default reactor.core.publisher.Flux<ByteBuffer>zRangeByScore(ByteBuffer key, Range<Double> range) Get elements in range from sorted set.default reactor.core.publisher.Flux<ByteBuffer>zRangeByScore(ByteBuffer key, Range<Double> range, Limit limit) Get elements in range from sorted set.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeByScoreCommand,reactor.core.publisher.Flux<Tuple>>> zRangeByScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeByScoreCommand> commands) GetTuples in range from sorted set.default reactor.core.publisher.Flux<Tuple>zRangeByScoreWithScores(ByteBuffer key, Range<Double> range) GetTuples in range from sorted set.default reactor.core.publisher.Flux<Tuple>zRangeByScoreWithScores(ByteBuffer key, Range<Double> range, Limit limit) GetTuples in range from sorted set.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeStoreCommand,reactor.core.publisher.Mono<Long>>> zRangeStore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeStoreCommand> commands) Get set ofTuples in range from sorted set.default reactor.core.publisher.Mono<Long>zRangeStoreByLex(ByteBuffer srcKey, ByteBuffer destKey, Range<String> range, Limit limit) Add elements fromsrcKeyby lexicographical range todestKey.default reactor.core.publisher.Mono<Long>zRangeStoreByScore(ByteBuffer srcKey, ByteBuffer destKey, Range<Double> range, Limit limit) Add elements fromsrcKeyby score range todestKey.default reactor.core.publisher.Mono<Long>zRangeStoreRevByLex(ByteBuffer srcKey, ByteBuffer destKey, Range<String> range, Limit limit) Add elements fromsrcKeyby reverse lexicographical range todestKey.default reactor.core.publisher.Mono<Long>zRangeStoreRevByScore(ByteBuffer srcKey, ByteBuffer destKey, Range<Double> range, Limit limit) Add elements fromsrcKeyby reverse score range todestKey.default reactor.core.publisher.Flux<Tuple>zRangeWithScores(ByteBuffer key, Range<Long> range) Get set ofTuples in range from sorted set.default reactor.core.publisher.Mono<Long>zRank(ByteBuffer key, ByteBuffer value) Determine the index of element with value in a sorted set.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRankCommand,Long>> zRank(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRankCommand> commands) Determine the index of element with value in a sorted set when scored byReactiveZSetCommands.ZRankCommand.getDirection().default reactor.core.publisher.Mono<Long>zRem(ByteBuffer key, ByteBuffer value) Remove value from sorted set.default reactor.core.publisher.Mono<Long>zRem(ByteBuffer key, Collection<ByteBuffer> values) Remove values from sorted set.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemCommand,Long>> zRem(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemCommand> commands) RemoveReactiveZSetCommands.ZRemCommand.getValues()from sorted set.default reactor.core.publisher.Mono<Long>zRemRangeByLex(ByteBuffer key, Range<String> range) Remove elements inRangefrom sorted set with key.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByLexCommand,Long>> zRemRangeByLex(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemRangeByLexCommand> commands) Remove elements inRangefrom sorted set withReactiveRedisConnection.KeyCommand.getKey().default reactor.core.publisher.Mono<Long>zRemRangeByRank(ByteBuffer key, Range<Long> range) Remove elements inRangefrom sorted set with key.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByRankCommand,Long>> zRemRangeByRank(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemRangeByRankCommand> commands) Remove elements inRangefrom sorted set withReactiveRedisConnection.KeyCommand.getKey().default reactor.core.publisher.Mono<Long>zRemRangeByScore(ByteBuffer key, Range<Double> range) Remove elements inRangefrom sorted set with key.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByScoreCommand,Long>> zRemRangeByScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemRangeByScoreCommand> commands) Remove elements inRangefrom sorted set withReactiveRedisConnection.KeyCommand.getKey().default reactor.core.publisher.Flux<ByteBuffer>zRevRange(ByteBuffer key, Range<Long> range) Get elements in range from sorted set in reverse score ordering.default reactor.core.publisher.Flux<ByteBuffer>zRevRangeByLex(ByteBuffer key, Range<String> range) Get all elements inRangefrom the sorted set at key in lexicographical ordering.default reactor.core.publisher.Flux<ByteBuffer>zRevRangeByLex(ByteBuffer key, Range<String> range, Limit limit) Get all elements inRangefrom the sorted set at key in lexicographical ordering.default reactor.core.publisher.Flux<ByteBuffer>zRevRangeByScore(ByteBuffer key, Range<Double> range) Get elements in range from sorted set in reverse score ordering.default reactor.core.publisher.Flux<ByteBuffer>zRevRangeByScore(ByteBuffer key, Range<Double> range, Limit limit) Get elements in range from sorted set in reverse score ordering.default reactor.core.publisher.Flux<Tuple>zRevRangeByScoreWithScores(ByteBuffer key, Range<Double> range) Get set ofTuples in range from sorted set in reverse score ordering.default reactor.core.publisher.Flux<Tuple>zRevRangeByScoreWithScores(ByteBuffer key, Range<Double> range, Limit limit) GetTuples in range from sorted set in reverse score ordering.default reactor.core.publisher.Flux<Tuple>zRevRangeWithScores(ByteBuffer key, Range<Long> range) Get set ofTuples in range from sorted set in reverse score ordering.default reactor.core.publisher.Mono<Long>zRevRank(ByteBuffer key, ByteBuffer value) Determine the index of element with value in a sorted set when scored high to low.default reactor.core.publisher.Flux<Tuple>zScan(ByteBuffer key) Use aFluxto iterate over members in the sorted set atkey.default reactor.core.publisher.Flux<Tuple>zScan(ByteBuffer key, ScanOptions options) reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveRedisConnection.KeyCommand,reactor.core.publisher.Flux<Tuple>>> zScan(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyScanCommand> commands) Use aFluxto iterate over members in the sorted set atkey.default reactor.core.publisher.Mono<Double>zScore(ByteBuffer key, ByteBuffer value) Get the score of element with value from sorted set with key key.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZScoreCommand,Double>> zScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZScoreCommand> commands) Get the score of element withReactiveZSetCommands.ZScoreCommand.getValue()from sorted set with keyReactiveRedisConnection.KeyCommand.getKey()default reactor.core.publisher.Flux<ByteBuffer>zUnion(List<ByteBuffer> sets) Union sorted sets.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,reactor.core.publisher.Flux<ByteBuffer>>> zUnion(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Union sorted sets by applying aggregateFunction and apply weights to individual sets.default reactor.core.publisher.Mono<Long>zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets) Union sorted sets and store result in destination destinationKey.default reactor.core.publisher.Mono<Long>zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights) Union sorted sets and store result in destination destinationKey and apply weights to individual sets.default reactor.core.publisher.Mono<Long>zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights, Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.default reactor.core.publisher.Mono<Long>zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights) Union sorted sets and store result in destination destinationKey and apply weights to individual sets.default reactor.core.publisher.Mono<Long>zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights, Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZAggregateStoreCommand,Long>> zUnionStore(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZAggregateStoreCommand> commands) Union sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.default reactor.core.publisher.Flux<Tuple>zUnionWithScores(List<ByteBuffer> sets) Union sorted sets.default reactor.core.publisher.Flux<Tuple>zUnionWithScores(List<ByteBuffer> sets, List<Double> weights) Union sorted sets and apply weights to individual sets.default reactor.core.publisher.Flux<Tuple>zUnionWithScores(List<ByteBuffer> sets, List<Double> weights, Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and apply weights to individual sets.default reactor.core.publisher.Flux<Tuple>zUnionWithScores(List<ByteBuffer> sets, Weights weights) Union sorted sets and apply weights to individual sets.default reactor.core.publisher.Flux<Tuple>zUnionWithScores(List<ByteBuffer> sets, Weights weights, Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and apply weights to individual sets.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,reactor.core.publisher.Flux<Tuple>>> zUnionWithScores(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Union sorted sets by applying aggregateFunction and apply weights to individual sets.
-
Method Details
-
zAdd
Add value to a sorted set at key, or update its score if it already exists.- Parameters:
key- must not be null.score- must not be null.value- must not be null.- Returns:
- See Also:
-
zAdd
Add a tuples to a sorted set at key, or update their score if it already exists.- Parameters:
key- must not be null.tuples- must not be null.- Returns:
- See Also:
-
zAdd
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZAddCommand,Number>> zAdd(org.reactivestreams.Publisher<ReactiveZSetCommands.ZAddCommand> commands) AddReactiveZSetCommands.ZAddCommand.getTuples()to a sorted set atReactiveRedisConnection.KeyCommand.getKey(), or update its score if it already exists.- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zRem
Remove value from sorted set. Return number of removed elements.- Parameters:
key- must not be null.value- must not be null.- Returns:
- See Also:
-
zRem
Remove values from sorted set. Return number of removed elements.- Parameters:
key- must not be null.values- must not be null.- Returns:
- See Also:
-
zRem
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemCommand,Long>> zRem(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemCommand> commands) RemoveReactiveZSetCommands.ZRemCommand.getValues()from sorted set. Return number of removed elements.- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zIncrBy
default reactor.core.publisher.Mono<Double> zIncrBy(ByteBuffer key, Number increment, ByteBuffer value) Increment the score of element with value in sorted set by increment.- Parameters:
key- must not be null.increment- must not be null.value- must not be null.- Returns:
- See Also:
-
zIncrBy
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZIncrByCommand,Double>> zIncrBy(org.reactivestreams.Publisher<ReactiveZSetCommands.ZIncrByCommand> commands) Increment the score of element withReactiveZSetCommands.ZIncrByCommand.getValue()in sorted set byReactiveZSetCommands.ZIncrByCommand.getIncrement().- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zRandMember
Get random element from sorted set atkey.- Parameters:
key- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zRandMember
Getcountrandom elements from sorted set atkey.- Parameters:
key- must not be null.count- if the providedcountargument is positive, return a list of distinct fields, capped either atcountor the set size. Ifcountis negative, the behavior changes and the command is allowed to return the same value multiple times. In this case, the number of returned values is the absolute value of the specified count.- Returns:
- Since:
- 2.6
- See Also:
-
zRandMember
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRandMemberCommand,reactor.core.publisher.Flux<ByteBuffer>>> zRandMember(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRandMemberCommand> commands) Get random elements from sorted set atkey.- Parameters:
commands- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zRandMemberWithScore
Get random element from sorted set atkey.- Parameters:
key- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zRandMemberWithScore
Getcountrandom elements from sorted set atkey.- Parameters:
key- must not be null.count- if the providedcountargument is positive, return a list of distinct fields, capped either atcountor the set size. Ifcountis negative, the behavior changes and the command is allowed to return the same value multiple times. In this case, the number of returned values is the absolute value of the specified count.- Returns:
- Since:
- 2.6
- See Also:
-
zRandMemberWithScore
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRandMemberCommand,reactor.core.publisher.Flux<Tuple>>> zRandMemberWithScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRandMemberCommand> commands) Get random elements from sorted set atkey.- Parameters:
commands- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zRank
Determine the index of element with value in a sorted set.- Parameters:
key- must not be null.value- must not be null.- Returns:
- See Also:
-
zRevRank
Determine the index of element with value in a sorted set when scored high to low.- Parameters:
key- must not be null.value- must not be null.- Returns:
- See Also:
-
zRank
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRankCommand,Long>> zRank(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRankCommand> commands) Determine the index of element with value in a sorted set when scored byReactiveZSetCommands.ZRankCommand.getDirection().- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zRange
Get elements in range from sorted set.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRangeWithScores
Get set ofTuples in range from sorted set.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRevRange
Get elements in range from sorted set in reverse score ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRevRangeWithScores
Get set ofTuples in range from sorted set in reverse score ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRange
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeCommand,reactor.core.publisher.Flux<Tuple>>> zRange(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeCommand> commands) Get set ofTuples in range from sorted set.- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zRangeStoreByScore
default reactor.core.publisher.Mono<Long> zRangeStoreByScore(ByteBuffer srcKey, ByteBuffer destKey, Range<Double> range, Limit limit) Add elements fromsrcKeyby score range todestKey.- Parameters:
srcKey- must not be null.destKey- must not be null.range- must not be null.limit- must not be null.- Returns:
- Since:
- 3.0
- See Also:
-
zRangeStoreByLex
default reactor.core.publisher.Mono<Long> zRangeStoreByLex(ByteBuffer srcKey, ByteBuffer destKey, Range<String> range, Limit limit) Add elements fromsrcKeyby lexicographical range todestKey.- Parameters:
srcKey- must not be null.destKey- must not be null.range- must not be null.limit- must not be null.- Returns:
- Since:
- 3.0
- See Also:
-
zRangeStoreRevByScore
default reactor.core.publisher.Mono<Long> zRangeStoreRevByScore(ByteBuffer srcKey, ByteBuffer destKey, Range<Double> range, Limit limit) Add elements fromsrcKeyby reverse score range todestKey.- Parameters:
srcKey- must not be null.destKey- must not be null.range- must not be null.limit- must not be null.- Returns:
- Since:
- 3.0
- See Also:
-
zRangeStoreRevByLex
default reactor.core.publisher.Mono<Long> zRangeStoreRevByLex(ByteBuffer srcKey, ByteBuffer destKey, Range<String> range, Limit limit) Add elements fromsrcKeyby reverse lexicographical range todestKey.- Parameters:
srcKey- must not be null.destKey- must not be null.range- must not be null.limit- must not be null.- Returns:
- Since:
- 3.0
- See Also:
-
zRangeStore
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeStoreCommand,reactor.core.publisher.Mono<Long>>> zRangeStore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeStoreCommand> commands) Get set ofTuples in range from sorted set.- Parameters:
commands- must not be null.- Returns:
- Since:
- 3.0
- See Also:
-
zRangeByScore
Get elements in range from sorted set.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRangeByScore
default reactor.core.publisher.Flux<ByteBuffer> zRangeByScore(ByteBuffer key, Range<Double> range, Limit limit) Get elements in range from sorted set.- Parameters:
key- must not be null.range- must not be null.limit- must not be null.- Returns:
- See Also:
-
zRangeByScoreWithScores
default reactor.core.publisher.Flux<Tuple> zRangeByScoreWithScores(ByteBuffer key, Range<Double> range) GetTuples in range from sorted set.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRangeByScoreWithScores
default reactor.core.publisher.Flux<Tuple> zRangeByScoreWithScores(ByteBuffer key, Range<Double> range, Limit limit) GetTuples in range from sorted set.- Parameters:
key- must not be null.range- must not be null.limit- must not be null.- Returns:
- See Also:
-
zRevRangeByScore
default reactor.core.publisher.Flux<ByteBuffer> zRevRangeByScore(ByteBuffer key, Range<Double> range) Get elements in range from sorted set in reverse score ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRevRangeByScore
default reactor.core.publisher.Flux<ByteBuffer> zRevRangeByScore(ByteBuffer key, Range<Double> range, Limit limit) Get elements in range from sorted set in reverse score ordering.- Parameters:
key- must not be null.range- must not be null.limit- must not be null.- Returns:
- See Also:
-
zRevRangeByScoreWithScores
default reactor.core.publisher.Flux<Tuple> zRevRangeByScoreWithScores(ByteBuffer key, Range<Double> range) Get set ofTuples in range from sorted set in reverse score ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRevRangeByScoreWithScores
default reactor.core.publisher.Flux<Tuple> zRevRangeByScoreWithScores(ByteBuffer key, Range<Double> range, Limit limit) GetTuples in range from sorted set in reverse score ordering.- Parameters:
key- must not be null.range- must not be null.limit- must not be null.- Returns:
- See Also:
-
zRangeByScore
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeByScoreCommand,reactor.core.publisher.Flux<Tuple>>> zRangeByScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeByScoreCommand> commands) GetTuples in range from sorted set.- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zScan
Use aFluxto iterate over members in the sorted set atkey. The resultingFluxacts as a cursor and issuesZSCANcommands itself as long as the subscriber signals demand.- Parameters:
key- must not be null.- Returns:
- the
Fluxemitting the rawtuplesone by one. - Throws:
IllegalArgumentException- when key is null.- Since:
- 2.1
- See Also:
-
zScan
Use aFluxto iterate over members in the sorted set atkeygivenScanOptions. The resultingFluxacts as a cursor and issuesZSCANcommands itself as long as the subscriber signals.- Parameters:
key- must not be null.options- must not be null. UseScanOptions.NONEinstead.- Returns:
- the
Fluxemitting the rawtuplesone by one. - Throws:
IllegalArgumentException- when one of the required arguments is null.- Since:
- 2.1
- See Also:
-
zScan
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveRedisConnection.KeyCommand,reactor.core.publisher.Flux<Tuple>>> zScan(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyScanCommand> commands) Use aFluxto iterate over members in the sorted set atkey. The resultingFluxacts as a cursor and issuesZSCANcommands itself as long as the subscriber signals demand.- Parameters:
commands- must not be null.- Returns:
- Since:
- 2.1
- See Also:
-
zCount
Count number of elements within sorted set with scores withinRange.
NOTE please useDouble.NEGATIVE_INFINITYfor -inf andDouble.POSITIVE_INFINITYfor +inf.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zCount
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZCountCommand,Long>> zCount(org.reactivestreams.Publisher<ReactiveZSetCommands.ZCountCommand> commands) Count number of elements within sorted set with scores withinRange.
NOTE please useDouble.NEGATIVE_INFINITYfor -inf andDouble.POSITIVE_INFINITYfor +inf.- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zLexCount
Count number of elements within sorted set with value betweenRange#minandRange#maxapplying lexicographical ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- Since:
- 2.4
- See Also:
-
zLexCount
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZLexCountCommand,Long>> zLexCount(org.reactivestreams.Publisher<ReactiveZSetCommands.ZLexCountCommand> commands) Count number of elements within sorted set with value betweenRange#minandRange#maxapplying lexicographical ordering.- Parameters:
commands- must not be null.- Returns:
- Since:
- 2.4
- See Also:
-
zPopMin
Remove and return the value with its score having the lowest score from sorted set atkey.- Parameters:
key- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zPopMin
Remove and returncountvalues with their score having the lowest score from sorted set atkey.- Parameters:
key- must not be null.count- number of elements to pop.- Returns:
- Since:
- 2.6
- See Also:
-
bZPopMin
Remove and return the value with its score having the lowest score from sorted set atkey. Blocks connection until element available ortimeoutreached.- Parameters:
key- must not be null.timeout- must not be null.- Returns:
- Throws:
IllegalArgumentException- if the timeout is null or negative.- Since:
- 2.6
- See Also:
-
zPopMax
Remove and return the value with its score having the highest score from sorted set atkey.- Parameters:
key- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zPopMax
Remove and returncountvalues with their score having the highest score from sorted set atkey.- Parameters:
key- must not be null.count- number of elements to pop.- Returns:
- Since:
- 2.6
- See Also:
-
bZPopMax
Remove and return the value with its score having the highest score from sorted set atkey. Blocks connection until element available ortimeoutreached.- Parameters:
key- must not be null.timeout- must not be null.- Returns:
- Throws:
IllegalArgumentException- if the timeout is null or negative.- Since:
- 2.6
- See Also:
-
zPop
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZPopCommand,reactor.core.publisher.Flux<Tuple>>> zPop(org.reactivestreams.Publisher<ReactiveZSetCommands.ZPopCommand> commands) Remove and return elements from sorted set atkeyCommand#getKey().- Parameters:
commands- must not be null.- Returns:
- See Also:
-
bZPop
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.BZPopCommand,reactor.core.publisher.Flux<Tuple>>> bZPop(org.reactivestreams.Publisher<ReactiveZSetCommands.BZPopCommand> commands) Remove and return elements from sorted set atkeyCommand#getKey().- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zCard
Get the size of sorted set with key.- Parameters:
key- must not be null.- Returns:
- See Also:
-
zCard
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> zCard(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands) Get the size of sorted set with .- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zScore
Get the score of element with value from sorted set with key key.- Parameters:
key- must not be null.value- must not be null.- Returns:
- See Also:
-
zScore
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZScoreCommand,Double>> zScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZScoreCommand> commands) Get the score of element withReactiveZSetCommands.ZScoreCommand.getValue()from sorted set with keyReactiveRedisConnection.KeyCommand.getKey()- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zMScore
default reactor.core.publisher.Mono<List<Double>> zMScore(ByteBuffer key, Collection<ByteBuffer> values) Get the scores of elements with values from sorted set with key key.- Parameters:
key- must not be null.values- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zMScore
reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<ReactiveZSetCommands.ZMScoreCommand,Double>> zMScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZMScoreCommand> commands) Get the scores of elements withReactiveZSetCommands.ZMScoreCommand.getValues()from sorted set with keyReactiveRedisConnection.KeyCommand.getKey()- Parameters:
commands- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zRemRangeByRank
Remove elements inRangefrom sorted set with key.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRemRangeByRank
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByRankCommand,Long>> zRemRangeByRank(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemRangeByRankCommand> commands) Remove elements inRangefrom sorted set withReactiveRedisConnection.KeyCommand.getKey().- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zRemRangeByScore
Remove elements inRangefrom sorted set with key.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRemRangeByScore
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByScoreCommand,Long>> zRemRangeByScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemRangeByScoreCommand> commands) Remove elements inRangefrom sorted set withReactiveRedisConnection.KeyCommand.getKey().- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zRemRangeByLex
Remove elements inRangefrom sorted set with key.- Parameters:
key- must not be null.range- must not be null.- Returns:
- a
Monoemitting the number of removed elements. - Since:
- 2.5
- See Also:
-
zRemRangeByLex
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByLexCommand,Long>> zRemRangeByLex(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemRangeByLexCommand> commands) Remove elements inRangefrom sorted set withReactiveRedisConnection.KeyCommand.getKey().- Parameters:
commands- must not be null.- Returns:
- Since:
- 2.5
- See Also:
-
zDiff
Diff sorted sets.- Parameters:
sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zDiff
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZDiffCommand,reactor.core.publisher.Flux<ByteBuffer>>> zDiff(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZDiffCommand> commands) Diff sorted sets.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zDiffWithScores
Diff sorted sets.- Parameters:
sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zDiffWithScores
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZDiffCommand,reactor.core.publisher.Flux<Tuple>>> zDiffWithScores(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZDiffCommand> commands) Diff sorted sets.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zDiffStore
default reactor.core.publisher.Mono<Long> zDiffStore(ByteBuffer destinationKey, List<ByteBuffer> sets) Diff sorted sets and store result in destination destinationKey.- Parameters:
destinationKey- must not be null.sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zDiffStore
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZDiffStoreCommand,Long>> zDiffStore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZDiffStoreCommand> commands) Diff sorted sets and store result in destination destinationKey.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zInter
Intersect sorted sets.- Parameters:
sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zInter
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,reactor.core.publisher.Flux<ByteBuffer>>> zInter(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zInterWithScores
Intersect sorted sets.- Parameters:
sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zInterWithScores
default reactor.core.publisher.Flux<Tuple> zInterWithScores(List<ByteBuffer> sets, List<Double> weights) Intersect sorted sets and apply weights to individual sets.- Parameters:
sets- must not be null.weights- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zInterWithScores
Intersect sorted sets and apply weights to individual sets.- Parameters:
sets- must not be null.weights- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zInterWithScores
default reactor.core.publisher.Flux<Tuple> zInterWithScores(List<ByteBuffer> sets, List<Double> weights, @Nullable Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
sets- must not be null.weights- must not be null.aggregateFunction- can be null.- Returns:
- Since:
- 2.6
- See Also:
-
zInterWithScores
default reactor.core.publisher.Flux<Tuple> zInterWithScores(List<ByteBuffer> sets, Weights weights, @Nullable Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
sets- must not be null.weights- must not be null.aggregateFunction- can be null.- Returns:
- Since:
- 2.6
- See Also:
-
zInterWithScores
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,reactor.core.publisher.Flux<Tuple>>> zInterWithScores(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zInterStore
default reactor.core.publisher.Mono<Long> zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets) Intersect sorted sets and store result in destination destinationKey.- Parameters:
destinationKey- must not be null.sets- must not be null.- Returns:
- See Also:
-
zInterStore
default reactor.core.publisher.Mono<Long> zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights) Intersect sorted sets and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- must not be null.- Returns:
- See Also:
-
zInterStore
default reactor.core.publisher.Mono<Long> zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights) Intersect sorted sets and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- must not be null.- Returns:
- Since:
- 2.1
- See Also:
-
zInterStore
default reactor.core.publisher.Mono<Long> zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights, @Nullable Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- must not be null.aggregateFunction- can be null.- Returns:
- See Also:
-
zInterStore
default reactor.core.publisher.Mono<Long> zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights, @Nullable Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- must not be null.aggregateFunction- can be null.- Returns:
- Since:
- 2.1
- See Also:
-
zInterStore
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZAggregateStoreCommand,Long>> zInterStore(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZAggregateStoreCommand> commands) Intersect sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.- Parameters:
commands-- Returns:
- See Also:
-
zUnion
Union sorted sets.- Parameters:
sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zUnionWithScores
Union sorted sets.- Parameters:
sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zUnionWithScores
default reactor.core.publisher.Flux<Tuple> zUnionWithScores(List<ByteBuffer> sets, List<Double> weights) Union sorted sets and apply weights to individual sets.- Parameters:
sets- must not be null.weights- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zUnionWithScores
Union sorted sets and apply weights to individual sets.- Parameters:
sets- must not be null.weights- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zUnionWithScores
default reactor.core.publisher.Flux<Tuple> zUnionWithScores(List<ByteBuffer> sets, List<Double> weights, @Nullable Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
sets- must not be null.weights- can be null.aggregateFunction- can be null.- Returns:
- Since:
- 2.6
- See Also:
-
zUnionWithScores
default reactor.core.publisher.Flux<Tuple> zUnionWithScores(List<ByteBuffer> sets, Weights weights, @Nullable Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
sets- must not be null.weights- can be null.aggregateFunction- can be null.- Returns:
- Since:
- 2.6
- See Also:
-
zUnionWithScores
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,reactor.core.publisher.Flux<Tuple>>> zUnionWithScores(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Union sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zUnion
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,reactor.core.publisher.Flux<ByteBuffer>>> zUnion(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Union sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zUnionStore
default reactor.core.publisher.Mono<Long> zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets) Union sorted sets and store result in destination destinationKey.- Parameters:
destinationKey- must not be null.sets- must not be null.- Returns:
- See Also:
-
zUnionStore
default reactor.core.publisher.Mono<Long> zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights) Union sorted sets and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- must not be null.- Returns:
- See Also:
-
zUnionStore
default reactor.core.publisher.Mono<Long> zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights) Union sorted sets and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- must not be null.- Returns:
- Since:
- 2.1
- See Also:
-
zUnionStore
default reactor.core.publisher.Mono<Long> zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights, @Nullable Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- can be null.aggregateFunction- can be null.- Returns:
- See Also:
-
zUnionStore
default reactor.core.publisher.Mono<Long> zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights, @Nullable Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- can be null.aggregateFunction- can be null.- Returns:
- Since:
- 2.1
- See Also:
-
zUnionStore
reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZAggregateStoreCommand,Long>> zUnionStore(org.reactivestreams.Publisher<? extends ReactiveZSetCommands.ZAggregateStoreCommand> commands) Union sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.- Parameters:
commands-- Returns:
- See Also:
-
zRangeByLex
Get all elements inRangefrom the sorted set at key in lexicographical ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRangeByLex
default reactor.core.publisher.Flux<ByteBuffer> zRangeByLex(ByteBuffer key, Range<String> range, Limit limit) Get all elements inRangefrom the sorted set at key in lexicographical ordering. Result is limited viaLimit.- Parameters:
key- must not be null.range- must not be null.limit- can be null.- Returns:
- See Also:
-
zRevRangeByLex
Get all elements inRangefrom the sorted set at key in lexicographical ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRevRangeByLex
default reactor.core.publisher.Flux<ByteBuffer> zRevRangeByLex(ByteBuffer key, Range<String> range, Limit limit) Get all elements inRangefrom the sorted set at key in lexicographical ordering. Result is limited viaLimit.- Parameters:
key- must not be null.range- must not be null.limit- must not be null.- Returns:
- See Also:
-
zRangeByLex
reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeByLexCommand,reactor.core.publisher.Flux<ByteBuffer>>> zRangeByLex(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeByLexCommand> commands) Get all elements inRangefrom the sorted set at key in lexicographical ordering. Result is limited viaLimitand sorted byReactiveZSetCommands.ZRangeByLexCommand.getDirection().- Parameters:
commands- must not be null.- Returns:
- See Also:
-