加入家族后清空用户缓存
This commit is contained in:
parent
4b78e6ced8
commit
33ee24f467
@ -26,8 +26,10 @@ import com.red.circle.other.inner.model.dto.famliy.FamilyDetailsDTO;
|
||||
import com.red.circle.other.inner.model.dto.user.reigon.UserRegionDTO;
|
||||
import com.red.circle.tool.core.sequence.IdWorkerUtils;
|
||||
import com.red.circle.tool.core.text.StringUtils;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@ -101,6 +103,8 @@ public class FamilyMessageHandleExe {
|
||||
}
|
||||
|
||||
sendNotification(msg.getSenderUser(), true);
|
||||
|
||||
userProfileGateway.removeCacheAll(new HashSet<>(Collections.singletonList(msg.getSenderUser())));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user