Package com.cxy.redisclient.integration.key

Examples of com.cxy.redisclient.integration.key.Expire.execute()


  }

  @Override
  protected void afterAdd() {
    Expire command2 = new Expire(id, db, key, ttl);
    command2.execute(jedis);
  }

}
View Full Code Here


   
    jedis.select(db);
    jedis.set(key, value);
   
    Expire command2 = new Expire(id, db, key, ttl);
    command2.execute(jedis);
  }

  @Override
  public RedisVersion getSupportVersion() {
    return RedisVersion.REDIS_1_0;
View Full Code Here

    AddList command = new AddList(id, db, key, values, headTail, exist);
    command.execute();
   
    if(ttl != -1){
      Expire command1 = new Expire(id, db, key, ttl);
      command1.execute();
    }

  }
 
  public void update(int id, int db, String key, List<String> values, boolean headTail){
View Full Code Here

    AddZSet command = (AddZSet) new AddZSetFactory(id, db, key, values).getCommand();
    command.execute();
   
    if(ttl != -1){
      Expire command1 = new Expire(id, db, key, ttl);
      command1.execute();
    }
  }
  public Set<Tuple> list(int id, int db, String key){
    IsKeyExist command1 = new IsKeyExist(id, db, key);
    command1.execute();
View Full Code Here

    AddHash command = new AddHash(id, db, key, values);
    command.execute();
   
    if(ttl != -1){
      Expire command1 = new Expire(id, db, key, ttl);
      command1.execute();
    }
  }
 
  public void update(int id, int db, String key, Map<String, String> values) {
    AddHash command = new AddHash(id, db, key, values);
View Full Code Here

    AddSet command = (AddSet) new AddSetFactory(id, db, key, values).getCommand();
    command.execute();
   
    if(ttl != -1){
      Expire command1 = new Expire(id, db, key, ttl);
      command1.execute();
    }
    return command.getSize();

  }
  public long addValues(int id, int db, String key, Set<String> values) {
View Full Code Here

  public void expire(int id, int db, String key, int ttl){
    if(!isKeyExist(id, db, key))
      throw new KeyNotExistException(id, db, key);
   
    Expire command1 = new Expire(id, db, key, ttl);
    command1.execute();

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