This commit is contained in:
houxinyu
2023-07-09 00:28:49 +08:00
parent f4c6eab0cc
commit ed3b6354b4

View File

@@ -187,6 +187,13 @@ public class RedisParserByPolling implements RedisParserHelper{
//轮询chain内容的定时任务
pool.scheduleAtFixedRate(pollChainTask(keyLuaOfChain, valueLuaOfChain),
60, Long.valueOf(redisParserVO.getPollingInterval()), TimeUnit.SECONDS);
//如果有脚本内容
if (ObjectUtil.isNotNull(scriptJedis) && ObjectUtil.isNotNull(redisParserVO.getScriptDataBase())) {
String keyLuaOfScript = scriptJedis.scriptLoad(luaOfKey);
String valueLuaOfScript = scriptJedis.scriptLoad(luaOfValue);
}
}