Commit 0b5f8d86 by huangfusuper

测试redis push的返回结果

parent 193f9214
......@@ -46,7 +46,8 @@ public class LogGobbler extends Thread {
runLog.setRunLog(line);
//stringRedisTemplate.convertAndSend(runKey, JSON.toJSONString(runLog, WriteClassName))
//TODO 向队列队尾插入一个值
stringRedisTemplate.opsForList().rightPush(runKey , JSON.toJSONString(runLog, WriteClassName));
Long aLong = stringRedisTemplate.opsForList().rightPush(runKey, JSON.toJSONString(runLog, WriteClassName));
log.info("-------{}:{}-------",String.valueOf(aLong),JSON.toJSONString(runLog, WriteClassName));
printLog(line);
}
} catch (final IOException e) {
......
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