diff options
author | Vitaly Takmazov | 2022-12-14 20:56:16 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-15 03:33:28 +0300 |
commit | de3834478f722a1790f0b65cc86a6e5b29fbf16a (patch) | |
tree | 82ed23f578b80158ad42b18a4c12bfc461184c16 /src | |
parent | 62105a718e0c23b627e5dc02a7b9a75aa2147dfa (diff) |
Cache evicting configuration update
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/service/MessagesService.java | 2 |
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); |