Package com.cxy.redisclient.integration.hash

Examples of com.cxy.redisclient.integration.hash.AddHash.execute()


import com.cxy.redisclient.integration.key.IsKeyExist;

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


    }
  }
 
  public void update(int id, int db, String key, Map<String, String> values) {
    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();
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.