Package com.cxy.redisclient.integration.key

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


    DeleteKey command = new DeleteKey(id, db, key);
    command.execute();
  }
 
  public boolean renameKey(int id, int db, String oldKey, String newKey, boolean overwritten) {
    RenameKey command = new RenameKey(id, db, oldKey, newKey, overwritten);
    command.execute();
    if(!overwritten && command.getResult() == 0)
      return false;
    else
      return true;
  }
View Full Code Here


  private void renameKey(int id, int db, String oldContainer,
      String newContainer, boolean overwritten,
      Set<String> failContainer, Node node) {
    String newKey = node.getKey().replaceFirst(oldContainer, newContainer);
    RenameKey command1 = new RenameKey(id, db, node.getKey(), newKey, overwritten);
    command1.execute();
    if(!overwritten && command1.getResult() == 0)
      failContainer.add(newKey);
  }
View Full Code Here

TOP

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

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.