|
|
|
@@ -46,6 +46,7 @@ public class WxTopicController extends BaseController { |
|
|
|
|
|
|
|
String key = EnumCacheKey.TOPIC_ONE.getMessage() + wxTopic.getTenantId() + ":"; |
|
|
|
WxTopic show = RedisCacheUtils.getCacheObject(redisTemplate, key, WxTopic.class); |
|
|
|
logger.info("WxCouponChannelController.chache.get:{} show:{}",key,show); |
|
|
|
if (null == show ) { |
|
|
|
show = wxTopicService.show(wxTopic); |
|
|
|
RedisCacheUtils.cache(redisTemplate, key, show, 100); |
|
|
|
@@ -63,6 +64,7 @@ public class WxTopicController extends BaseController { |
|
|
|
|
|
|
|
String key = EnumCacheKey.TOPIC_LIST.getMessage() + wxTopic.getTenantId() + ":"; |
|
|
|
List<WxTopic> topicList = RedisCacheUtils.getCacheObject(redisTemplate, key, List.class); |
|
|
|
logger.info("WxTopicController.chache.get:{} topicList:{}",key,topicList); |
|
|
|
if (null == topicList ) { |
|
|
|
topicList = wxTopicService.showList(wxTopic); |
|
|
|
RedisCacheUtils.cache(redisTemplate, key, topicList, 100); |
|
|
|
|