Package com.cxy.redisclient.integration.key

Examples of com.cxy.redisclient.integration.key.IsKeyExist


    command.execute();
    expire(id, db, key, ttl);
  }
 
  public String readString(int id, int db, String key) {
    IsKeyExist command1 = new IsKeyExist(id, db, key);
    command1.execute();
    if(!command1.isExist())
      throw new KeyNotExistException(id, db, key);
   
    ReadString command = new ReadString(id, db, key);
    command.execute();
    return command.getValue();
View Full Code Here


    else
      return null;
  }
 
  public boolean isKeyExist(int id, int db, String key) {
    IsKeyExist command = new IsKeyExist(id, db, key);
    command.execute();
    return command.isExist();
  }
View Full Code Here

    UpdateList command = new UpdateList(id, db, key, values, headTail);
    command.execute();
  }
 
  public List<String> list(int id, int db, String key){
    IsKeyExist command1 = new IsKeyExist(id, db, key);
    command1.execute();
    if(!command1.isExist())
      throw new KeyNotExistException(id, db, key);
   
    ListList command = new ListList(id, db, key);
    command.execute();
    return command.getValues();
View Full Code Here

      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();
    if(!command1.isExist())
      throw new KeyNotExistException(id, db, key);
   
    ListZSet command = new ListZSet(id, db, key);
    command.execute();
    return command.getValues();
View Full Code Here

    AddHash command = new AddHash(id, db, key, values);
    command.execute();
  }
 
  public Map<String, String> read(int id, int db, String key) {
    IsKeyExist command1 = new IsKeyExist(id, db, key);
    command1.execute();
    if(!command1.isExist())
      throw new KeyNotExistException(id, db, key);
   
    ReadHash command = new ReadHash(id, db, key);
    command.execute();
    return command.getValue();
View Full Code Here

    command.execute();
    return command.getSize();
  }
 
  public Set<String> list(int id, int db, String key) {
    IsKeyExist command1 = new IsKeyExist(id, db, key);
    command1.execute();
    if(!command1.isExist())
      throw new KeyNotExistException(id, db, key);
   
    ListSet command = new ListSet(id, db, key);
    command.execute();
    return command.getValues();
View Full Code Here

    RemoveSet command = (RemoveSet) new RemoveSetFactory(id, db, key, values).getCommand();
    command.execute();
  }
 
  public List<String> getPage(int id, int db, String key, int start, int end) {
    IsKeyExist command1 = new IsKeyExist(id, db, key);
    command1.execute();
    if(!command1.isExist())
      throw new KeyNotExistException(id, db, key);
    ListSetPage command = new ListSetPage(id, db, key, start, end);
    command.execute();
    return command.getPage();
  }
View Full Code Here

TOP

Related Classes of com.cxy.redisclient.integration.key.IsKeyExist

Copyright © 2018 www.massapicom. 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.