mirror of https://gitee.com/dromara/liteFlow
#ICGGAW redis数据源支持集群模式,修改校验
This commit is contained in:
parent
735f4b170d
commit
e659a4a2b0
|
|
@ -119,7 +119,7 @@ public class RedisXmlELParser extends ClassXmlFlowELParser {
|
|||
if (redisParserVO.getRedisMode().equals(RedisMode.CLUSTER) && CollectionUtil.isEmpty(redisParserVO.getClusterNodeAddress())) {
|
||||
throw new RedisException(StrFormatter.format(ERROR_MSG_PATTERN, "cluster address list"));
|
||||
}
|
||||
if (ObjectUtil.isNull(redisParserVO.getScriptKey()) && ObjectUtil.isNull(redisParserVO.getScriptDataBase()) && !redisParserVO.getRedisMode().equals(RedisMode.CLUSTER)) {
|
||||
if (ObjectUtil.isNotNull(redisParserVO.getScriptKey()) && ObjectUtil.isNull(redisParserVO.getScriptDataBase()) && !redisParserVO.getRedisMode().equals(RedisMode.CLUSTER)) {
|
||||
throw new RedisException(StrFormatter.format(ERROR_MSG_PATTERN, "scriptDataBase"));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ public class RedisParserPollingMode implements RedisParserHelper {
|
|||
redisParserVO.getPollingInterval().longValue(), TimeUnit.SECONDS);
|
||||
|
||||
//如果有脚本
|
||||
if (ObjectUtil.isNotNull(scriptClient) && (ObjectUtil.isNotNull(redisParserVO.getScriptDataBase()) || RedisMode.CLUSTER.getMode().equals(redisParserVO.getMode().getMode()))
|
||||
if (ObjectUtil.isNotNull(scriptClient) && (ObjectUtil.isNotNull(redisParserVO.getScriptDataBase()) || RedisMode.CLUSTER.equals(redisParserVO.getRedisMode()))
|
||||
&& StrUtil.isNotBlank(redisParserVO.getScriptKey())) {
|
||||
//将lua脚本添加到scriptJedis脚本缓存
|
||||
String keyLuaOfScript = scriptClient.scriptLoad(luaOfKey);
|
||||
|
|
|
|||
Loading…
Reference in New Issue