Interface SortedSetBinaryCommands

All Known Subinterfaces:
JedisBinaryCommands
All Known Implementing Classes:
Jedis, JedisCluster, JedisPooled, JedisSentineled, JedisSharding, UnifiedJedis

public interface SortedSetBinaryCommands
  • Method Details

    • zadd

      long zadd(byte[] key, double score, byte[] member)
    • zadd

      long zadd(byte[] key, double score, byte[] member, ZAddParams params)
    • zadd

      long zadd(byte[] key, Map<byte[],Double> scoreMembers)
    • zadd

      long zadd(byte[] key, Map<byte[],Double> scoreMembers, ZAddParams params)
    • zaddIncr

      Double zaddIncr(byte[] key, double score, byte[] member, ZAddParams params)
    • zrem

      long zrem(byte[] key, byte[]... members)
    • zincrby

      double zincrby(byte[] key, double increment, byte[] member)
    • zincrby

      Double zincrby(byte[] key, double increment, byte[] member, ZIncrByParams params)
    • zrank

      Long zrank(byte[] key, byte[] member)
    • zrevrank

      Long zrevrank(byte[] key, byte[] member)
    • zrankWithScore

      KeyValue<Long,Double> zrankWithScore(byte[] key, byte[] member)
    • zrevrankWithScore

      KeyValue<Long,Double> zrevrankWithScore(byte[] key, byte[] member)
    • zrange

      List<byte[]> zrange(byte[] key, long start, long stop)
    • zrevrange

      List<byte[]> zrevrange(byte[] key, long start, long stop)
    • zrangeWithScores

      List<Tuple> zrangeWithScores(byte[] key, long start, long stop)
    • zrevrangeWithScores

      List<Tuple> zrevrangeWithScores(byte[] key, long start, long stop)
    • zrange

      List<byte[]> zrange(byte[] key, ZRangeParams zRangeParams)
    • zrangeWithScores

      List<Tuple> zrangeWithScores(byte[] key, ZRangeParams zRangeParams)
    • zrangestore

      long zrangestore(byte[] dest, byte[] src, ZRangeParams zRangeParams)
    • zrandmember

      byte[] zrandmember(byte[] key)
    • zrandmember

      List<byte[]> zrandmember(byte[] key, long count)
    • zrandmemberWithScores

      List<Tuple> zrandmemberWithScores(byte[] key, long count)
    • zcard

      long zcard(byte[] key)
    • zscore

      Double zscore(byte[] key, byte[] member)
    • zmscore

      List<Double> zmscore(byte[] key, byte[]... members)
    • zpopmax

      Tuple zpopmax(byte[] key)
    • zpopmax

      List<Tuple> zpopmax(byte[] key, int count)
    • zpopmin

      Tuple zpopmin(byte[] key)
    • zpopmin

      List<Tuple> zpopmin(byte[] key, int count)
    • zcount

      long zcount(byte[] key, double min, double max)
    • zcount

      long zcount(byte[] key, byte[] min, byte[] max)
    • zrangeByScore

      List<byte[]> zrangeByScore(byte[] key, double min, double max)
    • zrangeByScore

      List<byte[]> zrangeByScore(byte[] key, byte[] min, byte[] max)
    • zrevrangeByScore

      List<byte[]> zrevrangeByScore(byte[] key, double max, double min)
    • zrangeByScore

      List<byte[]> zrangeByScore(byte[] key, double min, double max, int offset, int count)
    • zrevrangeByScore

      List<byte[]> zrevrangeByScore(byte[] key, byte[] max, byte[] min)
    • zrangeByScore

      List<byte[]> zrangeByScore(byte[] key, byte[] min, byte[] max, int offset, int count)
    • zrevrangeByScore

      List<byte[]> zrevrangeByScore(byte[] key, double max, double min, int offset, int count)
    • zrangeByScoreWithScores

      List<Tuple> zrangeByScoreWithScores(byte[] key, double min, double max)
    • zrevrangeByScoreWithScores

      List<Tuple> zrevrangeByScoreWithScores(byte[] key, double max, double min)
    • zrangeByScoreWithScores

      List<Tuple> zrangeByScoreWithScores(byte[] key, double min, double max, int offset, int count)
    • zrevrangeByScore

      List<byte[]> zrevrangeByScore(byte[] key, byte[] max, byte[] min, int offset, int count)
    • zrangeByScoreWithScores

      List<Tuple> zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max)
    • zrevrangeByScoreWithScores

      List<Tuple> zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min)
    • zrangeByScoreWithScores

      List<Tuple> zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max, int offset, int count)
    • zrevrangeByScoreWithScores

      List<Tuple> zrevrangeByScoreWithScores(byte[] key, double max, double min, int offset, int count)
    • zrevrangeByScoreWithScores

      List<Tuple> zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min, int offset, int count)
    • zremrangeByRank

      long zremrangeByRank(byte[] key, long start, long stop)
    • zremrangeByScore

      long zremrangeByScore(byte[] key, double min, double max)
    • zremrangeByScore

      long zremrangeByScore(byte[] key, byte[] min, byte[] max)
    • zlexcount

      long zlexcount(byte[] key, byte[] min, byte[] max)
    • zrangeByLex

      List<byte[]> zrangeByLex(byte[] key, byte[] min, byte[] max)
    • zrangeByLex

      List<byte[]> zrangeByLex(byte[] key, byte[] min, byte[] max, int offset, int count)
    • zrevrangeByLex

      List<byte[]> zrevrangeByLex(byte[] key, byte[] max, byte[] min)
    • zrevrangeByLex

      List<byte[]> zrevrangeByLex(byte[] key, byte[] max, byte[] min, int offset, int count)
    • zremrangeByLex

      long zremrangeByLex(byte[] key, byte[] min, byte[] max)
    • zscan

      default ScanResult<Tuple> zscan(byte[] key, byte[] cursor)
    • zscan

      ScanResult<Tuple> zscan(byte[] key, byte[] cursor, ScanParams params)
    • bzpopmax

      List<byte[]> bzpopmax(double timeout, byte[]... keys)
    • bzpopmin

      List<byte[]> bzpopmin(double timeout, byte[]... keys)
    • zdiff

      Set<byte[]> zdiff(byte[]... keys)
    • zdiffWithScores

      Set<Tuple> zdiffWithScores(byte[]... keys)
    • zdiffStore

      long zdiffStore(byte[] dstkey, byte[]... keys)
    • zinter

      Set<byte[]> zinter(ZParams params, byte[]... keys)
    • zinterWithScores

      Set<Tuple> zinterWithScores(ZParams params, byte[]... keys)
    • zinterstore

      long zinterstore(byte[] dstkey, byte[]... sets)
    • zinterstore

      long zinterstore(byte[] dstkey, ZParams params, byte[]... sets)
    • zintercard

      long zintercard(byte[]... keys)
      Similar to ZINTER, but instead of returning the result set, it returns just the cardinality of the result.

      Time complexity O(N*K) worst case with N being the smallest input sorted set, K being the number of input sorted sets

      Parameters:
      keys - group of sets
      Returns:
      The number of elements in the resulting intersection
      See Also:
    • zintercard

      long zintercard(long limit, byte[]... keys)
      Similar to ZINTER, but instead of returning the result set, it returns just the cardinality of the result.

      Time complexity O(N*K) worst case with N being the smallest input sorted set, K being the number of input sorted sets

      Parameters:
      limit - If the intersection cardinality reaches limit partway through the computation, the algorithm will exit and yield limit as the cardinality
      keys - group of sets
      Returns:
      The number of elements in the resulting intersection
      See Also:
    • zunion

      Set<byte[]> zunion(ZParams params, byte[]... keys)
    • zunionWithScores

      Set<Tuple> zunionWithScores(ZParams params, byte[]... keys)
    • zunionstore

      long zunionstore(byte[] dstkey, byte[]... sets)
    • zunionstore

      long zunionstore(byte[] dstkey, ZParams params, byte[]... sets)
    • zmpop

      KeyValue<byte[],List<Tuple>> zmpop(SortedSetOption option, byte[]... keys)
    • zmpop

      KeyValue<byte[],List<Tuple>> zmpop(SortedSetOption option, int count, byte[]... keys)
    • bzmpop

      KeyValue<byte[],List<Tuple>> bzmpop(long timeout, SortedSetOption option, byte[]... keys)
    • bzmpop

      KeyValue<byte[],List<Tuple>> bzmpop(long timeout, SortedSetOption option, int count, byte[]... keys)