Package com.cxy.redisclient.integration.hash

Examples of com.cxy.redisclient.integration.hash.AddHash


import com.cxy.redisclient.integration.key.Expire;
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


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

TOP

Related Classes of com.cxy.redisclient.integration.hash.AddHash

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.