Examples of lRange()


Examples of redis.clients.jedis.Jedis.lrange()

  public List<Map<String,String>> listSubscriptions(String meetingId){
    List<Map<String,String>> list = new ArrayList<Map<String,String>>();
    Jedis jedis = redisPool.getResource();
    try {
      List<String> sids = jedis.lrange("meeting:" + meetingId + ":subscriptions", 0 , -1);
      for(int i=0; i<sids.size(); i++){
        Map<String,String> props = jedis.hgetAll("meeting:" + meetingId + ":subscription:" + sids.get(i));
        list.add(props)
      }
       
View Full Code Here

Examples of redis.clients.jedis.Jedis.lrange()

 
  public List<Map<String,String>> listSubscriptions(String meetingId){
    List<Map<String,String>> list = new ArrayList<Map<String,String>>();
    Jedis jedis = redisPool.getResource();
    try {
      List<String> sids = jedis.lrange("meeting:" + meetingId + ":subscriptions", 0 , -1);
      for(int i=0; i<sids.size(); i++){
        Map<String,String> props = jedis.hgetAll("meeting:" + meetingId + ":subscription:" + sids.get(i));
        list.add(props)
      }
       
View Full Code Here

Examples of redis.clients.jedis.Jedis.lrange()

  public List<Map<String,String>> listSubscriptions(String meetingId){
    List<Map<String,String>> list = new ArrayList<Map<String,String>>();
    Jedis jedis = redisPool.getResource();
    try {
      List<String> sids = jedis.lrange("meeting:" + meetingId + ":subscriptions", 0 , -1);
      for(int i=0; i<sids.size(); i++){
        Map<String,String> props = jedis.hgetAll("meeting:" + meetingId + ":subscription:" + sids.get(i));
        list.add(props)
      }
       
View Full Code Here

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

  Response<String> set = p.spop("set");
  Response<Boolean> blist = p.exists("list");
  Response<Double> zincrby = p.zincrby("zset", 1, "foo");
  Response<Long> zcard = p.zcard("zset");
  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);
View Full Code Here

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

        ShardedJedis jedis = Seek.getPool().getResource();
        Jedis shard = jedis.getShard(ndx.key());
        try {
            Pipeline p = shard.pipelined();
            // List<String> indexes =
            p.lrange(idx.key(), 0, -1);
            // Map<String, String> fields =
            p.hgetAll(idx.cat(Seek.FIELDS).key());
            // List<String> tags =
            p.lrange(idx.cat(Seek.TAGS).key(), 0, -1);
            List<Object> data = p.execute();
View Full Code Here

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

            // List<String> indexes =
            p.lrange(idx.key(), 0, -1);
            // Map<String, String> fields =
            p.hgetAll(idx.cat(Seek.FIELDS).key());
            // List<String> tags =
            p.lrange(idx.cat(Seek.TAGS).key(), 0, -1);
            List<Object> data = p.execute();
            List<byte[]> indexes = (List<byte[]>) data.get(0);
            List<byte[]> fields = (List<byte[]>) data.get(1);
            List<byte[]> tags = (List<byte[]>) data.get(2);
View Full Code Here

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

            long i = 0L;
            boolean includeSet = (previousReceiptHandle == null) ? true : false;
           
            while (retCount < num && i < llen) {
           
              List<String> memIds = jedis.lrange(queueUrl + "-" + shard + "-Q", i, i + num - 1);
               
              if (memIds.size() == 0) {
                  break; // done
                }
               
View Full Code Here

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

  Response<String> set = p.spop("set");
  Response<Boolean> blist = p.exists("list");
  Response<Double> zincrby = p.zincrby("zset", 1, "foo");
  Response<Long> zcard = p.zcard("zset");
  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);
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.