Browse Source

修改组缓存信息以对象序列化存储,不以hash存取

master
wangchao 5 years ago
parent
commit
7e23b16639
  1. 9
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/member/redis/ResiGroupMemberRedis.java

9
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/member/redis/ResiGroupMemberRedis.java

@ -70,14 +70,15 @@ public class ResiGroupMemberRedis {
* @Date 2020.04.13 23:36
**/
public ResiGroupMemberInfoRedisDTO get(String groupId ,String userId){
Map<String, Object> map = redisUtils.hGetAll(RedisKeys.getResiGroupMemberInfoKey(groupId,userId));
/*
Map<String, Object> map = redisUtils.hGetAll();
if (MapUtil.isEmpty(map)) {
return null;
}
//map to bean
ResiGroupMemberInfoRedisDTO member = BeanUtil.mapToBean(map, ResiGroupMemberInfoRedisDTO.class, true);
return member;
ResiGroupMemberInfoRedisDTO member = BeanUtil.mapToBean(map, ResiGroupMemberInfoRedisDTO.class, true);*/
return (ResiGroupMemberInfoRedisDTO) redisUtils.get(RedisKeys.getResiGroupMemberInfoKey(groupId,userId));
}
/**

Loading…
Cancel
Save