From de3834478f722a1790f0b65cc86a6e5b29fbf16a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 14 Dec 2022 20:56:16 +0300 Subject: Cache evicting configuration update --- src/main/java/com/juick/service/MessagesService.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/com/juick/service') diff --git a/src/main/java/com/juick/service/MessagesService.java b/src/main/java/com/juick/service/MessagesService.java index 274d4f30..eb1184e8 100644 --- a/src/main/java/com/juick/service/MessagesService.java +++ b/src/main/java/com/juick/service/MessagesService.java @@ -146,8 +146,10 @@ public interface MessagesService { List getPopularCandidates(); + @CacheEvict(value = { "discover", "discussions", "messages", "replies" }, allEntries = true, condition = "{ #user.uid != 0 }") void setLastReadComment(User user, Integer mid, Integer rid); + @CacheEvict(value = { "discover", "discussions", "messages", "replies" }, allEntries = true, condition = "{ #user.uid != 0 }") void setRead(User user, Integer mid); List getUnread(User user); -- cgit v1.2.3