package com.lambdaworks.redis.api.sync; import java.util.List; import com.lambdaworks.redis.Limit; import com.lambdaworks.redis.Range; import com.lambdaworks.redis.ScanArgs; import com.lambdaworks.redis.ScanCursor; import com.lambdaworks.redis.ScoredValue; import com.lambdaworks.redis.ScoredValueScanCursor; import com.lambdaworks.redis.StreamScanCursor; import com.lambdaworks.redis.ZAddArgs; import com.lambdaworks.redis.ZStoreArgs; import com.lambdaworks.redis.output.ScoredValueStreamingChannel; import com.lambdaworks.redis.output.ValueStreamingChannel; /** * Synchronous executed commands for Sorted Sets. * * @param <K> Key type. * @param <V> Value type. * @author Mark Paluch * @since 4.0 * @generated by com.lambdaworks.apigenerator.CreateSyncApi */ public interface RedisSortedSetCommands<K, V> { /** * Add one or more members to a sorted set, or update its score if it already exists. * * @param key the key * @param score the score * @param member the member * * @return Long integer-reply specifically: * * The number of elements added to the sorted sets, not including elements already existing for which the score was * updated. */ Long zadd(K key, double score, V member); /** * Add one or more members to a sorted set, or update its score if it already exists. * * @param key the key * @param scoresAndValues the scoresAndValue tuples (score,value,score,value,...) * @return Long integer-reply specifically: * * The number of elements added to the sorted sets, not including elements already existing for which the score was * updated. */ Long zadd(K key, Object... scoresAndValues); /** * Add one or more members to a sorted set, or update its score if it already exists. * * @param key the key * @param scoredValues the scored values * @return Long integer-reply specifically: * * The number of elements added to the sorted sets, not including elements already existing for which the score was * updated. */ Long zadd(K key, ScoredValue<V>... scoredValues); /** * Add one or more members to a sorted set, or update its score if it already exists. * * @param key the key * @param zAddArgs arguments for zadd * @param score the score * @param member the member * * @return Long integer-reply specifically: * * The number of elements added to the sorted sets, not including elements already existing for which the score was * updated. */ Long zadd(K key, ZAddArgs zAddArgs, double score, V member); /** * Add one or more members to a sorted set, or update its score if it already exists. * * @param key the key * @param zAddArgs arguments for zadd * @param scoresAndValues the scoresAndValue tuples (score,value,score,value,...) * @return Long integer-reply specifically: * * The number of elements added to the sorted sets, not including elements already existing for which the score was * updated. */ Long zadd(K key, ZAddArgs zAddArgs, Object... scoresAndValues); /** * Add one or more members to a sorted set, or update its score if it already exists. * * @param key the ke * @param zAddArgs arguments for zadd * @param scoredValues the scored values * @return Long integer-reply specifically: * * The number of elements added to the sorted sets, not including elements already existing for which the score was * updated. */ Long zadd(K key, ZAddArgs zAddArgs, ScoredValue<V>... scoredValues); /** * Add one or more members to a sorted set, or update its score if it already exists applying the {@code INCR} option. ZADD * acts like ZINCRBY. * * @param key the key * @param score the score * @param member the member * @return Long integer-reply specifically: The total number of elements changed */ Double zaddincr(K key, double score, V member); /** * Add one or more members to a sorted set, or update its score if it already exists applying the {@code INCR} option. ZADD * acts like ZINCRBY. * * @param key the key * @param zAddArgs arguments for zadd * @param score the score * @param member the member * @return Long integer-reply specifically: The total number of elements changed * @since 4.3 */ Double zaddincr(K key, ZAddArgs zAddArgs, double score, V member); /** * Get the number of members in a sorted set. * * @param key the key * @return Long integer-reply the cardinality (number of elements) of the sorted set, or {@literal false} if {@code key} * does not exist. */ Long zcard(K key); /** * Count the members in a sorted set with scores within the given values. * * @param key the key * @param min min score * @param max max score * @return Long integer-reply the number of elements in the specified score range. * @deprecated Use {@link #zcount(java.lang.Object, Range)} */ @Deprecated Long zcount(K key, double min, double max); /** * Count the members in a sorted set with scores within the given values. * * @param key the key * @param min min score * @param max max score * @return Long integer-reply the number of elements in the specified score range. * @deprecated Use {@link #zcount(java.lang.Object, Range)} */ @Deprecated Long zcount(K key, String min, String max); /** * Count the members in a sorted set with scores within the given {@link Range}. * * @param key the key * @param range the range * @return Long integer-reply the number of elements in the specified score range. * @since 4.3 */ Long zcount(K key, Range<? extends Number> range); /** * Increment the score of a member in a sorted set. * * @param key the key * @param amount the increment type: long * @param member the member type: key * @return Double bulk-string-reply the new score of {@code member} (a double precision floating point number), represented * as string. */ Double zincrby(K key, double amount, K member); /** * Intersect multiple sorted sets and store the resulting sorted set in a new key. * * @param destination the destination * @param keys the keys * @return Long integer-reply the number of elements in the resulting sorted set at {@code destination}. */ Long zinterstore(K destination, K... keys); /** * Intersect multiple sorted sets and store the resulting sorted set in a new key. * * @param destination the destination * @param storeArgs the storeArgs * @param keys the keys * @return Long integer-reply the number of elements in the resulting sorted set at {@code destination}. */ Long zinterstore(K destination, ZStoreArgs storeArgs, K... keys); /** * Count the number of members in a sorted set between a given lexicographical range. * * @param key the key * @param min min score * @param max max score * @return Long integer-reply the number of elements in the specified score range. * @deprecated Use {@link #zlexcount(java.lang.Object, Range)} */ @Deprecated Long zlexcount(K key, String min, String max); /** * Count the number of members in a sorted set between a given lexicographical range. * * @param key the key * @param range the range * @return Long integer-reply the number of elements in the specified score range. * @since 4.3 */ Long zlexcount(K key, Range<? extends V> range); /** * Return a range of members in a sorted set, by index. * * @param key the key * @param start the start * @param stop the stop * @return List<V> array-reply list of elements in the specified range. */ List<V> zrange(K key, long start, long stop); /** * Return a range of members in a sorted set, by index. * * @param channel streaming channel that receives a call for every value * @param key the key * @param start the start * @param stop the stop * @return Long count of elements in the specified range. */ Long zrange(ValueStreamingChannel<V> channel, K key, long start, long stop); /** * Return a range of members with scores in a sorted set, by index. * * @param key the key * @param start the start * @param stop the stop * @return List<V> array-reply list of elements in the specified range. */ List<ScoredValue<V>> zrangeWithScores(K key, long start, long stop); /** * Stream over a range of members with scores in a sorted set, by index. * * @param channel streaming channel that receives a call for every value * @param key the key * @param start the start * @param stop the stop * @return Long count of elements in the specified range. */ Long zrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop); /** * Return a range of members in a sorted set, by lexicographical range. * * @param key the key * @param min min score * @param max max score * @return List<V> array-reply list of elements in the specified range. * @deprecated Use {@link #zrangebylex(java.lang.Object, Range)} */ @Deprecated List<V> zrangebylex(K key, String min, String max); /** * Return a range of members in a sorted set, by lexicographical range. * * @param key the key * @param range the range * @return List<V> array-reply list of elements in the specified range. * @since 4.3 */ List<V> zrangebylex(K key, Range<? extends V> range); /** * Return a range of members in a sorted set, by lexicographical range. * * @param key the key * @param min min score * @param max max score * @param offset the offset * @param count the count * @return List<V> array-reply list of elements in the specified range. * @deprecated Use {@link #zrangebylex(java.lang.Object, Range)} */ @Deprecated List<V> zrangebylex(K key, String min, String max, long offset, long count); /** * Return a range of members in a sorted set, by lexicographical range. * * @param key the key * @param range the range * @param limit the limit * @return List<V> array-reply list of elements in the specified range. * @since 4.3 */ List<V> zrangebylex(K key, Range<? extends V> range, Limit limit); /** * Return a range of members in a sorted set, by score. * * @param key the key * @param min min score * @param max max score * @return List<V> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrangebyscore(java.lang.Object, Range)} */ @Deprecated List<V> zrangebyscore(K key, double min, double max); /** * Return a range of members in a sorted set, by score. * * @param key the key * @param min min score * @param max max score * @return List<V> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrangebyscore(java.lang.Object, Range)} */ @Deprecated List<V> zrangebyscore(K key, String min, String max); /** * Return a range of members in a sorted set, by score. * * @param key the key * @param range the range * @return List<V> array-reply list of elements in the specified score range. * @since 4.3 */ List<V> zrangebyscore(K key, Range<? extends Number> range); /** * Return a range of members in a sorted set, by score. * * @param key the key * @param min min score * @param max max score * @param offset the offset * @param count the count * @return List<V> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrangebyscore(java.lang.Object, Range, Limit)} */ @Deprecated List<V> zrangebyscore(K key, double min, double max, long offset, long count); /** * Return a range of members in a sorted set, by score. * * @param key the key * @param min min score * @param max max score * @param offset the offset * @param count the count * @return List<V> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrangebyscore(java.lang.Object, Range, Limit)} */ @Deprecated List<V> zrangebyscore(K key, String min, String max, long offset, long count); /** * Return a range of members in a sorted set, by score. * * @param key the key * @param range the range * @param limit the limit * @return List<V> array-reply list of elements in the specified score range. * @since 4.3 */ List<V> zrangebyscore(K key, Range<? extends Number> range, Limit limit); /** * Stream over a range of members in a sorted set, by score. * * @param channel streaming channel that receives a call for every value * @param key the key * @param min min score * @param max max score * @return Long count of elements in the specified score range. * @deprecated Use {@link #zrangebyscore(ValueStreamingChannel, java.lang.Object, Range)} */ @Deprecated Long zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max); /** * Stream over a range of members in a sorted set, by score. * * @param channel streaming channel that receives a call for every value * @param key the key * @param min min score * @param max max score * @return Long count of elements in the specified score range. * @deprecated Use {@link #zrangebyscore(ValueStreamingChannel, java.lang.Object, Range)} */ @Deprecated Long zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max); /** * Stream over a range of members in a sorted set, by score. * * @param channel streaming channel that receives a call for every value * @param key the key * @param range the range * @return Long count of elements in the specified score range. * @since 4.3 */ Long zrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range); /** * Stream over range of members in a sorted set, by score. * * @param channel streaming channel that receives a call for every value * @param key the key * @param min min score * @param max max score * @param offset the offset * @param count the count * @return Long count of elements in the specified score range. * @deprecated Use {@link #zrangebyscore(ValueStreamingChannel, java.lang.Object, Range, Limit limit)} */ @Deprecated Long zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count); /** * Stream over a range of members in a sorted set, by score. * * @param channel streaming channel that receives a call for every value * @param key the key * @param min min score * @param max max score * @param offset the offset * @param count the count * @return Long count of elements in the specified score range. * @deprecated Use {@link #zrangebyscore(ValueStreamingChannel, java.lang.Object, Range, Limit limit)} */ @Deprecated Long zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count); /** * Stream over a range of members in a sorted set, by score. * * @param channel streaming channel that receives a call for every value * @param key the key * @param range the range * @param limit the limit * @return Long count of elements in the specified score range. * @since 4.3 */ Long zrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit); /** * Return a range of members with score in a sorted set, by score. * * @param key the key * @param min min score * @param max max score * @return List<ScoredValue<V>> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrangebyscoreWithScores(java.lang.Object, Range)} */ @Deprecated List<ScoredValue<V>> zrangebyscoreWithScores(K key, double min, double max); /** * Return a range of members with score in a sorted set, by score. * * @param key the key * @param min min score * @param max max score * @return List<ScoredValue<V>> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrangebyscoreWithScores(java.lang.Object, Range)} */ @Deprecated List<ScoredValue<V>> zrangebyscoreWithScores(K key, String min, String max); /** * Return a range of members with score in a sorted set, by score. * * @param key the key * @param range the range * @return List<ScoredValue<V>> array-reply list of elements in the specified score range. * @since 4.3 */ List<ScoredValue<V>> zrangebyscoreWithScores(K key, Range<? extends Number> range); /** * Return a range of members with score in a sorted set, by score. * * @param key the key * @param min min score * @param max max score * @param offset the offset * @param count the count * @return List<ScoredValue<V>> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrangebyscoreWithScores(java.lang.Object, Range, Limit limit)} */ List<ScoredValue<V>> zrangebyscoreWithScores(K key, double min, double max, long offset, long count); /** * Return a range of members with score in a sorted set, by score. * * @param key the key * @param min min score * @param max max score * @param offset the offset * @param count the count * @return List<ScoredValue<V>> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrangebyscoreWithScores(java.lang.Object, Range, Limit)} */ @Deprecated List<ScoredValue<V>> zrangebyscoreWithScores(K key, String min, String max, long offset, long count); /** * Return a range of members with score in a sorted set, by score. * * @param key the key * @param range the range * @param limit the limit * @return List<ScoredValue<V>> array-reply list of elements in the specified score range. * @since 4.3 */ List<ScoredValue<V>> zrangebyscoreWithScores(K key, Range<? extends Number> range, Limit limit); /** * Stream over a range of members with scores in a sorted set, by score. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param min min score * @param max max score * @return Long count of elements in the specified score range. * @deprecated Use {@link #zrangebyscoreWithScores(ScoredValueStreamingChannel, java.lang.Object, Range)} */ @Deprecated Long zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max); /** * Stream over a range of members with scores in a sorted set, by score. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param min min score * @param max max score * @return Long count of elements in the specified score range. * @deprecated Use {@link #zrangebyscoreWithScores(ScoredValueStreamingChannel, java.lang.Object, Range)} */ @Deprecated Long zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max); /** * Stream over a range of members with scores in a sorted set, by score. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param range the range * @return Long count of elements in the specified score range. * @since 4.3 */ Long zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range); /** * Stream over a range of members with scores in a sorted set, by score. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param min min score * @param max max score * @param offset the offset * @param count the count * @return Long count of elements in the specified score range. * @deprecated Use {@link #zrangebyscoreWithScores(ScoredValueStreamingChannel, java.lang.Object, Range, Limit limit)} */ @Deprecated Long zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count); /** * Stream over a range of members with scores in a sorted set, by score. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param min min score * @param max max score * @param offset the offset * @param count the count * @return Long count of elements in the specified score range. * @deprecated Use {@link #zrangebyscoreWithScores(ScoredValueStreamingChannel, java.lang.Object, Range, Limit limit)} */ @Deprecated Long zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count); /** * Stream over a range of members with scores in a sorted set, by score. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param range the range * @param limit the limit * @return Long count of elements in the specified score range. * @since 4.3 */ Long zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit); /** * Determine the index of a member in a sorted set. * * @param key the key * @param member the member type: value * @return Long integer-reply the rank of {@code member}. If {@code member} does not exist in the sorted set or {@code key} * does not exist, */ Long zrank(K key, V member); /** * Remove one or more members from a sorted set. * * @param key the key * @param members the member type: value * @return Long integer-reply specifically: * * The number of members removed from the sorted set, not including non existing members. */ Long zrem(K key, V... members); /** * Remove all members in a sorted set between the given lexicographical range. * * @param key the key * @param min min score * @param max max score * @return Long integer-reply the number of elements removed. * @deprecated Use {@link #zremrangebylex(java.lang.Object, Range)} */ @Deprecated Long zremrangebylex(K key, String min, String max); /** * Remove all members in a sorted set between the given lexicographical range. * * @param key the key * @param range the range * @return Long integer-reply the number of elements removed. * @since 4.3 */ Long zremrangebylex(K key, Range<? extends V> range); /** * Remove all members in a sorted set within the given indexes. * * @param key the key * @param start the start type: long * @param stop the stop type: long * @return Long integer-reply the number of elements removed. */ Long zremrangebyrank(K key, long start, long stop); /** * Remove all members in a sorted set within the given scores. * * @param key the key * @param min min score * @param max max score * @return Long integer-reply the number of elements removed. * @deprecated Use {@link #zremrangebyscore(java.lang.Object, Range)} */ @Deprecated Long zremrangebyscore(K key, double min, double max); /** * Remove all members in a sorted set within the given scores. * * @param key the key * @param min min score * @param max max score * @return Long integer-reply the number of elements removed. * @deprecated Use {@link #zremrangebyscore(java.lang.Object, Range)} */ @Deprecated Long zremrangebyscore(K key, String min, String max); /** * Remove all members in a sorted set within the given scores. * * @param key the key * @param range the range * @return Long integer-reply the number of elements removed. * @since 4.3 */ Long zremrangebyscore(K key, Range<? extends Number> range); /** * Return a range of members in a sorted set, by index, with scores ordered from high to low. * * @param key the key * @param start the start * @param stop the stop * @return List<V> array-reply list of elements in the specified range. */ List<V> zrevrange(K key, long start, long stop); /** * Stream over a range of members in a sorted set, by index, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param start the start * @param stop the stop * @return Long count of elements in the specified range. */ Long zrevrange(ValueStreamingChannel<V> channel, K key, long start, long stop); /** * Return a range of members with scores in a sorted set, by index, with scores ordered from high to low. * * @param key the key * @param start the start * @param stop the stop * @return List<V> array-reply list of elements in the specified range. */ List<ScoredValue<V>> zrevrangeWithScores(K key, long start, long stop); /** * Stream over a range of members with scores in a sorted set, by index, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param start the start * @param stop the stop * @return Long count of elements in the specified range. */ Long zrevrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop); /** * Return a range of members in a sorted set, by lexicographical range ordered from high to low. * * @param key the key * @param range the range * @return List<V> array-reply list of elements in the specified score range. * @since 4.3 */ List<V> zrevrangebylex(K key, Range<? extends V> range); /** * Return a range of members in a sorted set, by lexicographical range ordered from high to low. * * @param key the key * @param range the range * @param limit the limit * @return List<V> array-reply list of elements in the specified score range. * @since 4.3 */ List<V> zrevrangebylex(K key, Range<? extends V> range, Limit limit); /** * Return a range of members in a sorted set, by score, with scores ordered from high to low. * * @param key the key * @param min min score * @param max max score * @return List<V> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrevrangebyscore(java.lang.Object, Range)} */ @Deprecated List<V> zrevrangebyscore(K key, double max, double min); /** * Return a range of members in a sorted set, by score, with scores ordered from high to low. * * @param key the key * @param min min score * @param max max score * @return List<V> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrevrangebyscore(java.lang.Object, Range)} */ @Deprecated List<V> zrevrangebyscore(K key, String max, String min); /** * Return a range of members in a sorted set, by score, with scores ordered from high to low. * * @param key the key * @param range the range * @return List<V> array-reply list of elements in the specified score range. * @since 4.3 */ List<V> zrevrangebyscore(K key, Range<? extends Number> range); /** * Return a range of members in a sorted set, by score, with scores ordered from high to low. * * @param key the key * @param max max score * @param min min score * @param offset the withscores * @param count the null * @return List<V> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrevrangebyscore(java.lang.Object, Range, Limit)} */ @Deprecated List<V> zrevrangebyscore(K key, double max, double min, long offset, long count); /** * Return a range of members in a sorted set, by score, with scores ordered from high to low. * * @param key the key * @param max max score * @param min min score * @param offset the offset * @param count the count * @return List<V> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrevrangebyscore(java.lang.Object, Range, Limit)} */ @Deprecated List<V> zrevrangebyscore(K key, String max, String min, long offset, long count); /** * Return a range of members in a sorted set, by score, with scores ordered from high to low. * * @param key the key * @param range the range * @param limit the limit * @return List<V> array-reply list of elements in the specified score range. * @since 4.3 */ List<V> zrevrangebyscore(K key, Range<? extends Number> range, Limit limit); /** * Stream over a range of members in a sorted set, by score, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every value * @param key the key * @param max max score * @param min min score * @return Long count of elements in the specified range. * @deprecated Use {@link #zrevrangebyscore(java.lang.Object, Range)} */ @Deprecated Long zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min); /** * Stream over a range of members in a sorted set, by score, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every value * @param key the key * @param min min score * @param max max score * @return Long count of elements in the specified range. * @deprecated Use {@link #zrevrangebyscore(java.lang.Object, Range)} */ @Deprecated Long zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min); /** * Stream over a range of members in a sorted set, by score, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every value * @param key the key * @param range the range * @return Long count of elements in the specified range. * @since 4.3 */ Long zrevrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range); /** * Stream over a range of members in a sorted set, by score, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every value * @param key the key * @param min min score * @param max max score * @param offset the offset * @param count the count * @return Long count of elements in the specified range. * @deprecated Use {@link #zrevrangebyscoreWithScores(java.lang.Object, Range, Limit)} */ @Deprecated Long zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count); /** * Stream over a range of members in a sorted set, by score, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every value * @param key the key * @param min min score * @param max max score * @param offset the offset * @param count the count * @return Long count of elements in the specified range. * @deprecated Use {@link #zrevrangebyscoreWithScores(java.lang.Object, Range, Limit)} */ @Deprecated Long zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count); /** * Stream over a range of members in a sorted set, by score, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every value * @param key the key * @param range the range * @param limit the limit * @return Long count of elements in the specified range. * @since 4.3 */ Long zrevrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit); /** * Return a range of members with scores in a sorted set, by score, with scores ordered from high to low. * * @param key the key * @param max max score * @param min min score * @return List<V> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrevrangebyscoreWithScores(java.lang.Object, Range)} */ @Deprecated List<ScoredValue<V>> zrevrangebyscoreWithScores(K key, double max, double min); /** * Return a range of members with scores in a sorted set, by score, with scores ordered from high to low. * * @param key the key * @param max max score * @param min min score * @return List<ScoredValue<V>> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrevrangebyscoreWithScores(java.lang.Object, Range)} */ @Deprecated List<ScoredValue<V>> zrevrangebyscoreWithScores(K key, String max, String min); /** * Return a range of members with scores in a sorted set, by score, with scores ordered from high to low. * * @param key the key * @param range the range * @return List<ScoredValue<V>> array-reply list of elements in the specified score range. * @since 4.3 */ List<ScoredValue<V>> zrevrangebyscoreWithScores(K key, Range<? extends Number> range); /** * Return a range of members with scores in a sorted set, by score, with scores ordered from high to low. * * @param key the key * @param max max score * @param min min score * @param offset the offset * @param count the count * @return List<ScoredValue<V>> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrevrangebyscoreWithScores(java.lang.Object, Range, Limit)} */ @Deprecated List<ScoredValue<V>> zrevrangebyscoreWithScores(K key, double max, double min, long offset, long count); /** * Return a range of members with scores in a sorted set, by score, with scores ordered from high to low. * * @param key the key * @param max max score * @param min min score * @param offset the offset * @param count the count * @return List<V> array-reply list of elements in the specified score range. * @deprecated Use {@link #zrevrangebyscoreWithScores(java.lang.Object, Range, Limit)} */ @Deprecated List<ScoredValue<V>> zrevrangebyscoreWithScores(K key, String max, String min, long offset, long count); /** * Return a range of members with scores in a sorted set, by score, with scores ordered from high to low. * * @param key the key * @param range the range * @param limit limit * @return List<V> array-reply list of elements in the specified score range. * @since 4.3 */ List<ScoredValue<V>> zrevrangebyscoreWithScores(K key, Range<? extends Number> range, Limit limit); /** * Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param min min score * @param max max score * @return Long count of elements in the specified range. * @deprecated Use {@link #zrevrangebyscoreWithScores(ScoredValueStreamingChannel, java.lang.Object, Range)} */ @Deprecated Long zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min); /** * Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param min min score * @param max max score * @return Long count of elements in the specified range. * @deprecated Use {@link #zrevrangebyscoreWithScores(ScoredValueStreamingChannel, java.lang.Object, Range)} */ @Deprecated Long zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min); /** * Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param range the range * @return Long count of elements in the specified range. */ Long zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range); /** * Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param min min score * @param max max score * @param offset the offset * @param count the count * @return Long count of elements in the specified range. * @deprecated Use {@link #zrevrangebyscoreWithScores(ScoredValueStreamingChannel, java.lang.Object, Range, Limit)} */ @Deprecated Long zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count); /** * Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param min min score * @param max max score * @param offset the offset * @param count the count * @return Long count of elements in the specified range. * @deprecated Use {@link #zrevrangebyscoreWithScores(ScoredValueStreamingChannel, java.lang.Object, Range, Limit)} */ @Deprecated Long zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count); /** * Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param range the range * @param limit the limit * @return Long count of elements in the specified range. * @since 4.3 */ Long zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit); /** * Determine the index of a member in a sorted set, with scores ordered from high to low. * * @param key the key * @param member the member type: value * @return Long integer-reply the rank of {@code member}. If {@code member} does not exist in the sorted set or {@code key} * does not exist, */ Long zrevrank(K key, V member); /** * Incrementally iterate sorted sets elements and associated scores. * * @param key the key * @return ScoredValueScanCursor<V> scan cursor. */ ScoredValueScanCursor<V> zscan(K key); /** * Incrementally iterate sorted sets elements and associated scores. * * @param key the key * @param scanArgs scan arguments * @return ScoredValueScanCursor<V> scan cursor. */ ScoredValueScanCursor<V> zscan(K key, ScanArgs scanArgs); /** * Incrementally iterate sorted sets elements and associated scores. * * @param key the key * @param scanCursor cursor to resume from a previous scan, must not be {@literal null} * @param scanArgs scan arguments * @return ScoredValueScanCursor<V> scan cursor. */ ScoredValueScanCursor<V> zscan(K key, ScanCursor scanCursor, ScanArgs scanArgs); /** * Incrementally iterate sorted sets elements and associated scores. * * @param key the key * @param scanCursor cursor to resume from a previous scan, must not be {@literal null} * @return ScoredValueScanCursor<V> scan cursor. */ ScoredValueScanCursor<V> zscan(K key, ScanCursor scanCursor); /** * Incrementally iterate sorted sets elements and associated scores. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @return StreamScanCursor scan cursor. */ StreamScanCursor zscan(ScoredValueStreamingChannel<V> channel, K key); /** * Incrementally iterate sorted sets elements and associated scores. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param scanArgs scan arguments * @return StreamScanCursor scan cursor. */ StreamScanCursor zscan(ScoredValueStreamingChannel<V> channel, K key, ScanArgs scanArgs); /** * Incrementally iterate sorted sets elements and associated scores. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param scanCursor cursor to resume from a previous scan, must not be {@literal null} * @param scanArgs scan arguments * @return StreamScanCursor scan cursor. */ StreamScanCursor zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs); /** * Incrementally iterate sorted sets elements and associated scores. * * @param channel streaming channel that receives a call for every scored value * @param key the key * @param scanCursor cursor to resume from a previous scan, must not be {@literal null} * @return StreamScanCursor scan cursor. */ StreamScanCursor zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor); /** * Get the score associated with the given member in a sorted set. * * @param key the key * @param member the member type: value * @return Double bulk-string-reply the score of {@code member} (a double precision floating point number), represented as * string. */ Double zscore(K key, V member); /** * Add multiple sorted sets and store the resulting sorted set in a new key. * * @param destination destination key * @param keys source keys * @return Long integer-reply the number of elements in the resulting sorted set at {@code destination}. */ Long zunionstore(K destination, K... keys); /** * Add multiple sorted sets and store the resulting sorted set in a new key. * * @param destination the destination * @param storeArgs the storeArgs * @param keys the keys * @return Long integer-reply the number of elements in the resulting sorted set at {@code destination}. */ Long zunionstore(K destination, ZStoreArgs storeArgs, K... keys); }