aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-14 20:56:16 +0300
committerGravatar Vitaly Takmazov2022-12-15 03:33:28 +0300
commitde3834478f722a1790f0b65cc86a6e5b29fbf16a (patch)
tree82ed23f578b80158ad42b18a4c12bfc461184c16 /src
parent62105a718e0c23b627e5dc02a7b9a75aa2147dfa (diff)
Cache evicting configuration update
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/juick/service/MessagesService.java2
1 files changed, 2 insertions, 0 deletions
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<Integer> 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<Integer> getUnread(User user);