optimize journal list performance

main
wangqing 10 months ago
parent c150bb5b6a
commit c5eda488c4

@ -134,6 +134,7 @@ public class JournalMapper {
} }
} }
journalRespDTO.setTotalCommentReply(totalString); journalRespDTO.setTotalCommentReply(totalString);
redisTemplate.opsForValue().set("JOURNAL_TATAL_COMMENT_COUNT___"+journal.getId(),totalString,6,TimeUnit.HOURS);
} }

Loading…
Cancel
Save