...
|
...
|
@@ -172,7 +172,7 @@ public class InBoxServiceImpl implements IInBoxService { |
|
|
response.setSize(reqVO.getLimit());
|
|
|
response.setTotal(total);
|
|
|
//查询结果存入缓存
|
|
|
setInboxByRedis(reqVO,inBoxes,total);
|
|
|
setInboxByRedis(reqVO, voList, total);
|
|
|
return response;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -226,10 +226,10 @@ public class InBoxServiceImpl implements IInBoxService { |
|
|
return voList;
|
|
|
}
|
|
|
|
|
|
private void setInboxByRedis(ListInboxReqVO reqVO, List<InBox> inBoxes, int total) {
|
|
|
private void setInboxByRedis(ListInboxReqVO reqVO, List<InBoxVO> inBoxVos, int total) {
|
|
|
RedisKeyBuilder inboxKey = CacheEnum.USERS_INBOX_VO_LIST.generateKey(reqVO.getUid());
|
|
|
redisTemplate.put(inboxKey, CacheKeyHelper.getInboxRedisHashKey(reqVO.getType(),reqVO.getPage(),reqVO.getLimit()),
|
|
|
inBoxes,CacheEnum.USERS_INBOX_VO_LIST.getCacheTime());
|
|
|
inBoxVos,CacheEnum.USERS_INBOX_VO_LIST.getCacheTime());
|
|
|
RedisKeyBuilder inboxTotalKey = CacheEnum.USERS_INBOX_LIST_TOTAL.generateKey(reqVO.getUid(),reqVO.getType() == null ?"N":reqVO.getType());
|
|
|
redisTemplate.setEx(inboxTotalKey,total,CacheEnum.USERS_INBOX_LIST_TOTAL.getCacheTime());
|
|
|
}
|
...
|
...
|
|