Example #1
0
 public void removeUser(UserDTO userDto) {
   cache.remove("userId:" + userDto.getId());
   cache.remove("userUsername:"******":" + userDto.getUserRepoRef());
   cache.remove("userRef:" + userDto.getRef() + ":" + userDto.getUserRepoRef());
   cache.remove("nickName:" + userDto.getDisplayName());
 }
Example #2
0
 public void updateUser(UserDTO userDto) {
   cache.set("userId:" + userDto.getId(), userDto);
   cache.set("userUsername:"******":" + userDto.getUserRepoRef(), userDto);
   cache.set("userRef:" + userDto.getRef() + ":" + userDto.getUserRepoRef(), userDto);
   cache.set("nickName:" + userDto.getDisplayName(), userDto);
 }