Commit fc442dfa by WeiCong

去掉redis连接工具无用日志

parent e2c09651
......@@ -2,7 +2,6 @@ package org.sss.presentation.noui.util;
import log.Log;
import log.LogFactory;
import org.apache.commons.lang.StringUtils;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.util.ObjectUtils;
import org.sss.presentation.noui.redis.RedisBalanceProperties;
......@@ -14,7 +13,6 @@ import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
/**
* Redis连接池工具类
......@@ -113,7 +111,7 @@ public class RedisUtil {
//使用setex实现,减一次连接
masterNode.opsForValue().set(key,value,sessionTimeOut, TimeUnit.SECONDS);
} catch (Exception e) {
e.printStackTrace();
log.error(e.getMessage());
checkRedisNodeAvailable();
}
}
......@@ -122,7 +120,7 @@ public class RedisUtil {
try {
return masterNode.opsForValue().get(key);
} catch (Exception e) {
e.printStackTrace();
log.error(e.getMessage());
checkRedisNodeAvailable();
}
return null;
......@@ -132,7 +130,7 @@ public class RedisUtil {
try {
return masterNode.delete(key);
} catch (Exception e) {
e.printStackTrace();
log.error(e.getMessage());
checkRedisNodeAvailable();
}
return false;
......@@ -142,7 +140,7 @@ public class RedisUtil {
try {
return masterNode.keys(key + "*");
} catch (Exception e) {
e.printStackTrace();
log.error(e.getMessage());
checkRedisNodeAvailable();
}
return new HashSet();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment