Commit a4b60721 authored by 刘基明's avatar 刘基明

Merge branch 'bugfix_1208' into 'master'

redis锁fix

See merge request !32
parents 08e0f0eb ae7e75b1
...@@ -137,14 +137,12 @@ public class RankService { ...@@ -137,14 +137,12 @@ public class RankService {
.collect(Collectors.toList()); .collect(Collectors.toList());
// 落库 // 落库
try { if (redisCache.setIfAbsent("logThemeRank", "1", 60)) {
if (redisCache.setIfAbsent("logThemeRank","1",15)){ rankLogService.logThemeRank(hotestThemes, start, TimeUtils.calMillisTillNow(start));
rankLogService.logThemeRank(hotestThemes, start, TimeUtils.calMillisTillNow(start));
}
}finally {
redisCache.evict("logThemeRank"); 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