Package redis.clients.jedis

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


            List<String> memIds = new LinkedList<String>();
            try {
                jedis = getResource();
                updateExpire(queueUrl, shard, jedis);
                long ts1 = System.currentTimeMillis();
                Set<String> keys = jedis.hkeys(queueUrl + "-" + shard + "-H");
                long ts2 = System.currentTimeMillis();
                CQSControllerServlet.valueAccumulator.addToCounter(AccumulatorName.RedisTime, (ts2 - ts1));
                log.debug("event=revisibility_check queue_url=" + queueUrl + " shard=" + shard + " invisible_set_size=" + keys.size());
                for (String key : keys) {
                    long ts3 = System.currentTimeMillis();
View Full Code Here


  }

  @Override
  public String[] listAll() throws IOException {
    ShardedJedis rds = redisPool.getResource();
    Set<String> ls = rds.hkeys(dirName);
    if( ls == null ){
      return new String[0];
    }
    String[] ret = new String[ls.size()];
    ls.toArray(ret);
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.