All Downloads are FREE. Search and download functionalities are using the official Maven repository.

redis.clients.jedis.commands.SortedSetPipelineCommands Maven / Gradle / Ivy

The newest version!
package redis.clients.jedis.commands;

import java.util.List;
import java.util.Map;
import java.util.Set;

import redis.clients.jedis.Response;
import redis.clients.jedis.args.SortedSetOption;
import redis.clients.jedis.params.*;
import redis.clients.jedis.resps.ScanResult;
import redis.clients.jedis.resps.Tuple;
import redis.clients.jedis.util.KeyValue;

public interface SortedSetPipelineCommands {

  Response zadd(String key, double score, String member);

  Response zadd(String key, double score, String member, ZAddParams params);

  Response zadd(String key, Map scoreMembers);

  Response zadd(String key, Map scoreMembers, ZAddParams params);

  Response zaddIncr(String key, double score, String member, ZAddParams params);

  Response zrem(String key, String... members);

  Response zincrby(String key, double increment, String member);

  Response zincrby(String key, double increment, String member, ZIncrByParams params);

  Response zrank(String key, String member);

  Response zrevrank(String key, String member);

  Response> zrankWithScore(String key, String member);

  Response> zrevrankWithScore(String key, String member);

  Response> zrange(String key, long start, long stop);

  Response> zrevrange(String key, long start, long stop);

  Response> zrangeWithScores(String key, long start, long stop);

  Response> zrevrangeWithScores(String key, long start, long stop);

  Response zrandmember(String key);

  Response> zrandmember(String key, long count);

  Response> zrandmemberWithScores(String key, long count);

  Response zcard(String key);

  Response zscore(String key, String member);

  Response> zmscore(String key, String... members);

  Response zpopmax(String key);

  Response> zpopmax(String key, int count);

  Response zpopmin(String key);

  Response> zpopmin(String key, int count);

  Response zcount(String key, double min, double max);

  Response zcount(String key, String min, String max);

  Response> zrangeByScore(String key, double min, double max);

  Response> zrangeByScore(String key, String min, String max);

  Response> zrevrangeByScore(String key, double max, double min);

  Response> zrangeByScore(String key, double min, double max, int offset, int count);

  Response> zrevrangeByScore(String key, String max, String min);

  Response> zrangeByScore(String key, String min, String max, int offset, int count);

  Response> zrevrangeByScore(String key, double max, double min, int offset, int count);

  Response> zrangeByScoreWithScores(String key, double min, double max);

  Response> zrevrangeByScoreWithScores(String key, double max, double min);

  Response> zrangeByScoreWithScores(String key, double min, double max, int offset, int count);

  Response> zrevrangeByScore(String key, String max, String min, int offset, int count);

  Response> zrangeByScoreWithScores(String key, String min, String max);

  Response> zrevrangeByScoreWithScores(String key, String max, String min);

  Response> zrangeByScoreWithScores(String key, String min, String max, int offset, int count);

  Response> zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count);

  Response> zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count);

  Response> zrange(String key, ZRangeParams zRangeParams);

  Response> zrangeWithScores(String key, ZRangeParams zRangeParams);

  Response zrangestore(String dest, String src, ZRangeParams zRangeParams);

  Response zremrangeByRank(String key, long start, long stop);

  Response zremrangeByScore(String key, double min, double max);

  Response zremrangeByScore(String key, String min, String max);

  Response zlexcount(String key, String min, String max);

  Response> zrangeByLex(String key, String min, String max);

  Response> zrangeByLex(String key, String min, String max, int offset, int count);

  Response> zrevrangeByLex(String key, String max, String min);

  Response> zrevrangeByLex(String key, String max, String min, int offset, int count);

  Response zremrangeByLex(String key, String min, String max);

  default Response> zscan(String key, String cursor) {
    return zscan(key, cursor, new ScanParams());
  }

  Response> zscan(String key, String cursor, ScanParams params);

  Response> bzpopmax(double timeout, String... keys);

  Response> bzpopmin(double timeout, String... keys);

  Response> zdiff(String... keys);

  Response> zdiffWithScores(String... keys);

  /**
   * @deprecated Use {@link #zdiffstore(java.lang.String, java.lang.String...)}.
   */
  @Deprecated
  Response zdiffStore(String dstKey, String... keys);

  Response zdiffstore(String dstKey, String... keys);

  Response zinterstore(String dstKey, String... sets);

  Response zinterstore(String dstKey, ZParams params, String... sets);

  Response> zinter(ZParams params, String... keys);

  Response> zinterWithScores(ZParams params, String... keys);

  Response zintercard(String... keys);

  Response zintercard(long limit, String... keys);

  Response> zunion(ZParams params, String... keys);

  Response> zunionWithScores(ZParams params, String... keys);

  Response zunionstore(String dstKey, String... sets);

  Response zunionstore(String dstKey, ZParams params, String... sets);

  Response>> zmpop(SortedSetOption option, String... keys);

  Response>> zmpop(SortedSetOption option, int count, String... keys);

  Response>> bzmpop(double timeout, SortedSetOption option, String... keys);

  Response>> bzmpop(double timeout, SortedSetOption option, int count, String... keys);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy