Package redis.clients.jedis

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


     try {
       if (exp > 0) {
         jedis.set(queueUrl  + "-" + shard + suffix, "Y");
         jedis.expire(queueUrl + "-" + shard + suffix, exp); //expire after exp seconds
       } else {
         jedis.del(queueUrl + "-" + shard + suffix);
       }
     } catch (JedisException e) {
       brokenJedis = true;
       throw e;
     } finally {
View Full Code Here


  }

  @Override
  public void clearLock(String name) throws IOException {
    ShardedJedis jds = pool.getResource();
    jds.del(name+".lock");
    pool.returnResource(jds);
  }

  @Override
  public Lock makeLock(String name) {
View Full Code Here

  }

  @Override
  public void release() throws IOException {
    ShardedJedis jds = pool.getResource();
    jds.del(name+".lock");
    pool.returnResource(jds);
  }

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