...
|
...
|
@@ -55,7 +55,7 @@ public class RedisCache { |
|
|
for (DrawlineActivity act : activityList) {
|
|
|
try {
|
|
|
maxId = drawlineUserQueueDAO.selectMaxSortByActivityId(act.getId());
|
|
|
yhValueOperations.setIfAbsent(SORT_ID_KEY + act.getId().intValue(), String.valueOf(maxId));
|
|
|
yhValueOperations.set(SORT_ID_KEY + act.getId().intValue(), String.valueOf(maxId));
|
|
|
yHRedisTemplate.longExpire(SORT_ID_KEY + act.getId().intValue(), 6 * 30 * 24 * 3600, TimeUnit.SECONDS);
|
|
|
} catch (Exception e) {
|
|
|
log.error("init activity sort error with activityId {}", act.getId(), e);
|
...
|
...
|
|