Examples of hkeys()


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

        return hlen;
    }

    public Set<String> hkeys() {
        Jedis jedis = getResource();
        Set<String> hkeys = jedis.hkeys(key());
        returnResource(jedis);
        return hkeys;
    }

    // Redis Set Operations
View Full Code Here

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

    public Set<String> hKeys(String key) throws Exception {
        Jedis jedis = null;
        try {
            jedis = this.jedisPool.getResource();
            Set<byte[]> hkeys = jedis.hkeys(SafeEncoder.encode(key));
            LOG.info("hkeys key:" + key);
            if (CollectionUtils.isEmpty(hkeys)) {
                return new HashSet<String>(1);
            } else {
                Set<String> keys = new HashSet<String>(hkeys.size());
View Full Code Here

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

    public Set<String> hKeys(String key) throws Exception {
        Jedis jedis = null;
        try {
            jedis = this.jedisPool.getResource();
            Set<byte[]> hkeys = jedis.hkeys(SafeEncoder.encode(key));
            LOG.info("hkeys key:" + key);
            if (CollectionUtils.isEmpty(hkeys)) {
                return new HashSet<String>(1);
            } else {
                Set<String> keys = new HashSet<String>(hkeys.size());
View Full Code Here

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

  jedis.hset("key".getBytes(), "f1".getBytes(), "v111".getBytes());
  jedis.hset("key".getBytes(), "f22".getBytes(), "v2222".getBytes());

  Pipeline p = jedis.pipelined();
  Response<Map<byte[], byte[]>> fmap = p.hgetAll("key".getBytes());
  Response<Set<byte[]>> fkeys = p.hkeys("key".getBytes());
  Response<List<byte[]>> fordered = p.hmget("key".getBytes(),
    "f22".getBytes(), "f1".getBytes());
  Response<List<byte[]>> fvals = p.hvals("key".getBytes());
  p.sync();
View Full Code Here

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

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

  }

  @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.