Commit 4661e0f1 authored by 刘基明's avatar 刘基明

Merge branch 'bugfix_1208' into 'dev'

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

See merge request !30
parents 699e4298 0552c522
......@@ -138,8 +138,9 @@ public class RankService {
// 落库
try {
redisCache.setIfAbsent("logThemeRank","1",15);
rankLogService.logThemeRank(hotestThemes, start, TimeUtils.calMillisTillNow(start));
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