diff options
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/juick/service/MessagesService.java | 5 |
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); |