Commit 0552c522 authored by 刘基明's avatar 刘基明

多实例记录rank日志添加分布式锁判断

parent a0c1655b
......@@ -138,8 +138,9 @@ public class RankService {
// 落库
try {
redisCache.setIfAbsent("logThemeRank","1",15);
if (redisCache.setIfAbsent("logThemeRank","1",15)){
rankLogService.logThemeRank(hotestThemes, start, TimeUtils.calMillisTillNow(start));
}
}finally {
redisCache.evict("logThemeRank");
}
......
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