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
Modifier and TypeInterfaceDescriptionstatic class
BZPOPMIN
/BZPOPMAX command parameters.static enum
static class
ZADD
command parameters.static class
ZINTER
/ZUNION
command parameters.static class
ZINTERSTORE
/ZUNIONSTORE
command parameters.static class
ZCOUNT
command parameters.static class
ZDIFF
command parameters.static class
ZDIFFSTORE
command parameters.static class
ZINCRBY
command parameters.static class
ZINTERSTORE
command parameters.static class
ZLEXCOUNT
command parameters.static class
ZMSCORE
command parameters.static class
ZPOPMIN
/ZPOPMAX command parameters.static class
ZRANDMEMBER
command parameters.static class
ZRANGEBYLEX
/ZREVRANGEBYLEX command parameters.static class
ZRANGEBYSCORE/ZREVRANGEBYSCORE.static class
ZRANGE
/ZREVRANGE command parameters.static class
ZRANK
/ZREVRANK command parameters.static class
ZREM
command parameters.static class
ZREMRANGEBYLEX
command parameters.static class
ZREMRANGEBYRANK
command parameters.static class
ZREMRANGEBYSCORE
command parameters.static class
ZSCORE
command parameters.static class
ZUNIONSTORE
command parameters. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.BZPopCommand,
reactor.core.publisher.Flux<RedisZSetCommands.Tuple>>> bZPop
(org.reactivestreams.Publisher<ReactiveZSetCommands.BZPopCommand> commands) Remove and return elements from sorted set atkeyCommand#getKey()
.default reactor.core.publisher.Mono<RedisZSetCommands.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<RedisZSetCommands.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 RedisZSetCommands.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<RedisZSetCommands.Tuple>
zDiffWithScores
(List<ByteBuffer> sets) Diff sorted sets.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZDiffCommand,
reactor.core.publisher.Flux<RedisZSetCommands.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, RedisZSetCommands.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, RedisZSetCommands.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, RedisZSetCommands.Weights weights, RedisZSetCommands.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<RedisZSetCommands.Tuple>
zInterWithScores
(List<ByteBuffer> sets) Intersect sorted sets.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zInterWithScores
(List<ByteBuffer> sets, List<Double> weights) Intersect sorted sets and apply weights to individual sets.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zInterWithScores
(List<ByteBuffer> sets, List<Double> weights, RedisZSetCommands.Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zInterWithScores
(List<ByteBuffer> sets, RedisZSetCommands.Weights weights) Intersect sorted sets and apply weights to individual sets.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zInterWithScores
(List<ByteBuffer> sets, RedisZSetCommands.Weights weights, RedisZSetCommands.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<RedisZSetCommands.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#min
andRange#max
applying 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#min
andRange#max
applying 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<RedisZSetCommands.Tuple>>> zPop
(org.reactivestreams.Publisher<ReactiveZSetCommands.ZPopCommand> commands) Remove and return elements from sorted set atkeyCommand#getKey()
.default reactor.core.publisher.Mono<RedisZSetCommands.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<RedisZSetCommands.Tuple>
zPopMax
(ByteBuffer key, long count) Remove and returncount
values with their score having the highest score from sorted set atkey
.default reactor.core.publisher.Mono<RedisZSetCommands.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<RedisZSetCommands.Tuple>
zPopMin
(ByteBuffer key, long count) Remove and returncount
values 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) Getcount
random 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<RedisZSetCommands.Tuple>
Get random element from sorted set atkey
.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zRandMemberWithScore
(ByteBuffer key, long count) Getcount
random elements from sorted set atkey
.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRandMemberCommand,
reactor.core.publisher.Flux<RedisZSetCommands.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<RedisZSetCommands.Tuple>>> zRange
(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeCommand> commands) Get set ofRedisZSetCommands.Tuple
s in range from sorted set.default reactor.core.publisher.Flux<ByteBuffer>
zRangeByLex
(ByteBuffer key, Range<String> range) Get all elements inRange
from the sorted set at key in lexicographical ordering.default reactor.core.publisher.Flux<ByteBuffer>
zRangeByLex
(ByteBuffer key, Range<String> range, RedisZSetCommands.Limit limit) Get all elements inRange
from 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 inRange
from 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, RedisZSetCommands.Limit limit) Get elements in range from sorted set.reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeByScoreCommand,
reactor.core.publisher.Flux<RedisZSetCommands.Tuple>>> zRangeByScore
(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeByScoreCommand> commands) GetRedisZSetCommands.Tuple
s in range from sorted set.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zRangeByScoreWithScores
(ByteBuffer key, Range<Double> range) GetRedisZSetCommands.Tuple
s in range from sorted set.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zRangeByScoreWithScores
(ByteBuffer key, Range<Double> range, RedisZSetCommands.Limit limit) GetRedisZSetCommands.Tuple
s in range from sorted set.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zRangeWithScores
(ByteBuffer key, Range<Long> range) Get set ofRedisZSetCommands.Tuple
s 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 inRange
from sorted set with key.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByLexCommand,
Long>> zRemRangeByLex
(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemRangeByLexCommand> commands) Remove elements inRange
from sorted set withReactiveRedisConnection.KeyCommand.getKey()
.default reactor.core.publisher.Mono<Long>
zRemRangeByRank
(ByteBuffer key, Range<Long> range) Remove elements inRange
from sorted set with key.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByRankCommand,
Long>> zRemRangeByRank
(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemRangeByRankCommand> commands) Remove elements inRange
from sorted set withReactiveRedisConnection.KeyCommand.getKey()
.default reactor.core.publisher.Mono<Long>
zRemRangeByScore
(ByteBuffer key, Range<Double> range) Remove elements inRange
from sorted set with key.reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByScoreCommand,
Long>> zRemRangeByScore
(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemRangeByScoreCommand> commands) Remove elements inRange
from 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 inRange
from the sorted set at key in lexicographical ordering.default reactor.core.publisher.Flux<ByteBuffer>
zRevRangeByLex
(ByteBuffer key, Range<String> range, RedisZSetCommands.Limit limit) Get all elements inRange
from 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, RedisZSetCommands.Limit limit) Get elements in range from sorted set in reverse score ordering.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zRevRangeByScoreWithScores
(ByteBuffer key, Range<Double> range) Get set ofRedisZSetCommands.Tuple
s in range from sorted set in reverse score ordering.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zRevRangeByScoreWithScores
(ByteBuffer key, Range<Double> range, RedisZSetCommands.Limit limit) GetRedisZSetCommands.Tuple
s in range from sorted set in reverse score ordering.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zRevRangeWithScores
(ByteBuffer key, Range<Long> range) Get set ofRedisZSetCommands.Tuple
s 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<RedisZSetCommands.Tuple>
zScan
(ByteBuffer key) Use aFlux
to iterate over members in the sorted set atkey
.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zScan
(ByteBuffer key, ScanOptions options) reactor.core.publisher.Flux<ReactiveRedisConnection.CommandResponse<ReactiveRedisConnection.KeyCommand,
reactor.core.publisher.Flux<RedisZSetCommands.Tuple>>> zScan
(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyScanCommand> commands) Use aFlux
to 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, RedisZSetCommands.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, RedisZSetCommands.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, RedisZSetCommands.Weights weights, RedisZSetCommands.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<RedisZSetCommands.Tuple>
zUnionWithScores
(List<ByteBuffer> sets) Union sorted sets.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zUnionWithScores
(List<ByteBuffer> sets, List<Double> weights) Union sorted sets and apply weights to individual sets.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zUnionWithScores
(List<ByteBuffer> sets, List<Double> weights, RedisZSetCommands.Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and apply weights to individual sets.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zUnionWithScores
(List<ByteBuffer> sets, RedisZSetCommands.Weights weights) Union sorted sets and apply weights to individual sets.default reactor.core.publisher.Flux<RedisZSetCommands.Tuple>
zUnionWithScores
(List<ByteBuffer> sets, RedisZSetCommands.Weights weights, RedisZSetCommands.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<RedisZSetCommands.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
default reactor.core.publisher.Mono<Long> zAdd(ByteBuffer key, Collection<? extends RedisZSetCommands.Tuple> tuples) 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
Getcount
random elements from sorted set atkey
.- Parameters:
key
- must not be null.count
- if the providedcount
argument is positive, return a list of distinct fields, capped either atcount
or the set size. Ifcount
is 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
default reactor.core.publisher.Flux<RedisZSetCommands.Tuple> zRandMemberWithScore(ByteBuffer key, long count) Getcount
random elements from sorted set atkey
.- Parameters:
key
- must not be null.count
- if the providedcount
argument is positive, return a list of distinct fields, capped either atcount
or the set size. Ifcount
is 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<RedisZSetCommands.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
default reactor.core.publisher.Flux<RedisZSetCommands.Tuple> zRangeWithScores(ByteBuffer key, Range<Long> range) Get set ofRedisZSetCommands.Tuple
s 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
default reactor.core.publisher.Flux<RedisZSetCommands.Tuple> zRevRangeWithScores(ByteBuffer key, Range<Long> range) Get set ofRedisZSetCommands.Tuple
s 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<RedisZSetCommands.Tuple>>> zRange(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeCommand> commands) Get set ofRedisZSetCommands.Tuple
s in range from sorted set.- Parameters:
commands
- must not be null.- Returns:
- 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, RedisZSetCommands.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<RedisZSetCommands.Tuple> zRangeByScoreWithScores(ByteBuffer key, Range<Double> range) GetRedisZSetCommands.Tuple
s 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<RedisZSetCommands.Tuple> zRangeByScoreWithScores(ByteBuffer key, Range<Double> range, RedisZSetCommands.Limit limit) GetRedisZSetCommands.Tuple
s 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, RedisZSetCommands.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<RedisZSetCommands.Tuple> zRevRangeByScoreWithScores(ByteBuffer key, Range<Double> range) Get set ofRedisZSetCommands.Tuple
s 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<RedisZSetCommands.Tuple> zRevRangeByScoreWithScores(ByteBuffer key, Range<Double> range, RedisZSetCommands.Limit limit) GetRedisZSetCommands.Tuple
s 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<RedisZSetCommands.Tuple>>> zRangeByScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeByScoreCommand> commands) GetRedisZSetCommands.Tuple
s in range from sorted set.- Parameters:
commands
- must not be null.- Returns:
- See Also:
-
zScan
Use aFlux
to iterate over members in the sorted set atkey
. The resultingFlux
acts as a cursor and issuesZSCAN
commands itself as long as the subscriber signals demand.- Parameters:
key
- must not be null.- Returns:
- the
Flux
emitting the rawtuples
one by one. - Throws:
IllegalArgumentException
- when key is null.- Since:
- 2.1
- See Also:
-
zScan
default reactor.core.publisher.Flux<RedisZSetCommands.Tuple> zScan(ByteBuffer key, ScanOptions options) Use aFlux
to iterate over members in the sorted set atkey
givenScanOptions
. The resultingFlux
acts as a cursor and issuesZSCAN
commands itself as long as the subscriber signals.- Parameters:
key
- must not be null.options
- must not be null. UseScanOptions.NONE
instead.- Returns:
- the
Flux
emitting the rawtuples
one 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<RedisZSetCommands.Tuple>>> zScan(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyScanCommand> commands) Use aFlux
to iterate over members in the sorted set atkey
. The resultingFlux
acts as a cursor and issuesZSCAN
commands 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_INFINITY
for -inf andDouble.POSITIVE_INFINITY
for +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_INFINITY
for -inf andDouble.POSITIVE_INFINITY
for +inf.- Parameters:
commands
- must not be null.- Returns:
- See Also:
-
zLexCount
Count number of elements within sorted set with value betweenRange#min
andRange#max
applying 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#min
andRange#max
applying 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 returncount
values 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
default reactor.core.publisher.Mono<RedisZSetCommands.Tuple> bZPopMin(ByteBuffer key, Duration timeout) Remove and return the value with its score having the lowest score from sorted set atkey
. Blocks connection until element available ortimeout
reached.- 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 returncount
values 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
default reactor.core.publisher.Mono<RedisZSetCommands.Tuple> bZPopMax(ByteBuffer key, Duration timeout) Remove and return the value with its score having the highest score from sorted set atkey
. Blocks connection until element available ortimeout
reached.- 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<RedisZSetCommands.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<RedisZSetCommands.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 inRange
from 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 inRange
from sorted set withReactiveRedisConnection.KeyCommand.getKey()
.- Parameters:
commands
- must not be null.- Returns:
- See Also:
-
zRemRangeByScore
Remove elements inRange
from 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 inRange
from sorted set withReactiveRedisConnection.KeyCommand.getKey()
.- Parameters:
commands
- must not be null.- Returns:
- See Also:
-
zRemRangeByLex
Remove elements inRange
from sorted set with key.- Parameters:
key
- must not be null.range
- must not be null.- Returns:
- a
Mono
emitting 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 inRange
from 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<RedisZSetCommands.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
default reactor.core.publisher.Flux<RedisZSetCommands.Tuple> zInterWithScores(List<ByteBuffer> sets) Intersect sorted sets.- Parameters:
sets
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zInterWithScores
default reactor.core.publisher.Flux<RedisZSetCommands.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
default reactor.core.publisher.Flux<RedisZSetCommands.Tuple> zInterWithScores(List<ByteBuffer> sets, RedisZSetCommands.Weights 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
default reactor.core.publisher.Flux<RedisZSetCommands.Tuple> zInterWithScores(List<ByteBuffer> sets, List<Double> weights, @Nullable RedisZSetCommands.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<RedisZSetCommands.Tuple> zInterWithScores(List<ByteBuffer> sets, RedisZSetCommands.Weights weights, @Nullable RedisZSetCommands.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<RedisZSetCommands.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, RedisZSetCommands.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 RedisZSetCommands.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, RedisZSetCommands.Weights weights, @Nullable RedisZSetCommands.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
default reactor.core.publisher.Flux<RedisZSetCommands.Tuple> zUnionWithScores(List<ByteBuffer> sets) Union sorted sets.- Parameters:
sets
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zUnionWithScores
default reactor.core.publisher.Flux<RedisZSetCommands.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
default reactor.core.publisher.Flux<RedisZSetCommands.Tuple> zUnionWithScores(List<ByteBuffer> sets, RedisZSetCommands.Weights 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
default reactor.core.publisher.Flux<RedisZSetCommands.Tuple> zUnionWithScores(List<ByteBuffer> sets, List<Double> weights, @Nullable RedisZSetCommands.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<RedisZSetCommands.Tuple> zUnionWithScores(List<ByteBuffer> sets, RedisZSetCommands.Weights weights, @Nullable RedisZSetCommands.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<RedisZSetCommands.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, RedisZSetCommands.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 RedisZSetCommands.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, RedisZSetCommands.Weights weights, @Nullable RedisZSetCommands.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 inRange
from 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, RedisZSetCommands.Limit limit) Get all elements inRange
from the sorted set at key in lexicographical ordering. Result is limited viaRedisZSetCommands.Limit
.- Parameters:
key
- must not be null.range
- must not be null.limit
- can be null.- Returns:
- See Also:
-
zRevRangeByLex
Get all elements inRange
from 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, RedisZSetCommands.Limit limit) Get all elements inRange
from the sorted set at key in lexicographical ordering. Result is limited viaRedisZSetCommands.Limit
.- 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 inRange
from the sorted set at key in lexicographical ordering. Result is limited viaRedisZSetCommands.Limit
and sorted byReactiveZSetCommands.ZRangeByLexCommand.getDirection()
.- Parameters:
commands
- must not be null.- Returns:
- See Also:
-