Examples of zrangeWithScores()


Examples of redis.clients.jedis.Pipeline.zrangeWithScores()

  p.lpush("list", "bar");
  Response<List<String>> lrange = p.lrange("list", 0, -1);
  Response<Map<String, String>> hgetAll = p.hgetAll("hash");
  p.sadd("set", "foo");
  Response<Set<String>> smembers = p.smembers("set");
  Response<Set<Tuple>> zrangeWithScores = p.zrangeWithScores("zset", 0,
    -1);
  Response<String> getrange = p.getrange("setrange", 1, 3);
  Response<byte[]> getrangeBytes = p.getrange("setrangebytes".getBytes(),
    6, 8);
  p.sync();
View Full Code Here

Examples of redis.clients.jedis.ShardedJedis.zrangeWithScores()

         else {
           long startIndex = endRank - num;
           if (startIndex < 0 ){
             startIndex = 0;
           }
           Set <Tuple> memIdWithScores = jedis.zrangeWithScores(key, startIndex, endRank);
           long expiredTime = System.currentTimeMillis() - retention * 1000L;
           for (Tuple t: memIdWithScores) {
             if (t.getScore() < expiredTime || t.getElement().equals(nextReceiptHandle)) {
               continue;
             } else {
View Full Code Here

Examples of redis.clients.jedis.ShardedJedisPipeline.zrangeWithScores()

  p.lpush("list", "bar");
  Response<List<String>> lrange = p.lrange("list", 0, -1);
  Response<Map<String, String>> hgetAll = p.hgetAll("hash");
  p.sadd("set", "foo");
  Response<Set<String>> smembers = p.smembers("set");
  Response<Set<Tuple>> zrangeWithScores = p.zrangeWithScores("zset", 0,
    -1);
  p.sync();

  assertEquals("foo", string.get());
  assertEquals(Long.valueOf(1), del.get());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.