Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions src/main/templates/io/lettuce/core/api/RedisSortedSetCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -385,18 +385,6 @@ public interface RedisSortedSetCommands<K, V> {
*/
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.
*
Expand Down Expand Up @@ -557,18 +545,6 @@ public interface RedisSortedSetCommands<K, V> {
*/
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&lt;V&gt; 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.
*
Expand All @@ -579,20 +555,6 @@ public interface RedisSortedSetCommands<K, V> {
*/
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&lt;V&gt; 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.
*
Expand Down Expand Up @@ -979,18 +941,6 @@ Long zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Stri
*/
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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -975,9 +975,6 @@ void zlexcount() {

setup100KeyValues(new HashSet<>());

assertThat(redis.zlexcount(key, "-", "+")).isEqualTo(100);
assertThat(redis.zlexcount(key, "[value", "[zzz")).isEqualTo(100);

assertThat(redis.zlexcount(key, Range.unbounded())).isEqualTo(100);
assertThat(redis.zlexcount(key, Range.create("value", "zzz"))).isEqualTo(100);
assertThat(redis.zlexcount(key, Range.from(including("value99"), Boundary.unbounded()))).isEqualTo(1);
Expand All @@ -995,9 +992,6 @@ public void zmscore() {
void zrangebylex() {
setup100KeyValues(new HashSet<>());

assertThat(redis.zrangebylex(key, "-", "+")).hasSize(100);
assertThat(redis.zrangebylex(key, "-", "+", 10, 10)).hasSize(10);

assertThat(redis.zrangebylex(key, Range.unbounded())).hasSize(100);
assertThat(redis.zrangebylex(key, Range.create("value", "zzz"))).hasSize(100);
assertThat(redis.zrangebylex(key, Range.from(including("value98"), including("value99")))).containsSequence("value98",
Expand All @@ -1010,7 +1004,6 @@ void zrangebylex() {
void zremrangebylex() {

setup100KeyValues(new HashSet<>());
assertThat(redis.zremrangebylex(key, "(aaa", "[zzz")).isEqualTo(100);

setup100KeyValues(new HashSet<>());
assertThat(redis.zremrangebylex(key, Range.create("value", "zzz"))).isEqualTo(100);
Expand Down
Loading