aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-09 03:34:30 +0300
committerGravatar Vitaly Takmazov2022-12-09 03:53:11 +0300
commite3595acca39a3f22a29ac0a2bf9e6c5e8858d578 (patch)
tree2a5a829b7b2fffdbc8a2be538c98fcdfe1d27166 /src/main/java/com/juick/service
parentca94f0b8951a3520f219dceb68e67fe8e9886c07 (diff)
Update cache evict rules
Diffstat (limited to 'src/main/java/com/juick/service')
-rw-r--r--src/main/java/com/juick/service/MessagesService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/juick/service/MessagesService.java b/src/main/java/com/juick/service/MessagesService.java
index 3fdd2b9e..626cc495 100644
--- a/src/main/java/com/juick/service/MessagesService.java
+++ b/src/main/java/com/juick/service/MessagesService.java
@@ -126,8 +126,10 @@ public interface MessagesService {
boolean setMessagePrivacy(int mid);
+ @CacheEvict(value = { "discussions", "messages", "replies" }, allEntries = true)
boolean deleteMessage(int uid, int mid);
+ @CacheEvict(value = { "discussions", "messages", "replies" }, allEntries = true)
boolean deleteReply(int uid, int mid, int rid);
List<Integer> getLastMessages(int hours);
@@ -142,12 +144,15 @@ public interface MessagesService {
List<Integer> getUnread(User user);
+ @CacheEvict(value = { "discussions", "messages", "replies" }, allEntries = true)
boolean updateMessage(Integer mid, Integer rid, String body);
+ @CacheEvict(value = { "discussions", "messages", "replies" }, allEntries = true)
boolean updateReplyUri(Message reply, URI replyUri);
boolean replyExists(URI replyUri);
+ @CacheEvict(value = { "discussions", "messages", "replies" }, allEntries = true)
boolean deleteReply(URI userUri, URI replyUri);
String getMessageProperty(Integer mid, Integer rid, String key);