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

redis锁fix

parent 0552c522
......@@ -137,14 +137,12 @@ public class RankService {
.collect(Collectors.toList());
// 落库
try {
if (redisCache.setIfAbsent("logThemeRank","1",15)){
if (redisCache.setIfAbsent("logThemeRank", "1", 60)) {
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