写bug的小杨

导航

redis存储和取


存:
String sendAppFriendCircle = RedisKey.getFriendCircleKey("fq:sendAppFriendCircle:" + dataBean.getEditId(), dataBean.getEditId());
appRedisTemplate.opsForValue().set(sendAppFriendCircle, appFriendsGoodsVo, 2, TimeUnit.HOURS);


取:
V2AppFriendsGoodsVo appFriendsGoodsVo = (V2AppFriendsGoodsVo) appRedisTemplate.opsForValue().get(sendAppFriendCircle);

posted on 2020-06-24 12:13  迷途的小狗  阅读(278)  评论(0编辑  收藏  举报