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();
}