aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/SubscriptionService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/service/SubscriptionService.java')
-rw-r--r--src/main/java/com/juick/service/SubscriptionService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/juick/service/SubscriptionService.java b/src/main/java/com/juick/service/SubscriptionService.java
index c12c9625..96735d1a 100644
--- a/src/main/java/com/juick/service/SubscriptionService.java
+++ b/src/main/java/com/juick/service/SubscriptionService.java
@@ -20,6 +20,9 @@ package com.juick.service;
import com.juick.model.Message;
import com.juick.model.Tag;
import com.juick.model.User;
+
+import org.springframework.cache.annotation.CacheEvict;
+
import com.juick.model.NotifyOpts;
import java.util.List;
@@ -37,6 +40,7 @@ public interface SubscriptionService {
List<User> getUsersSubscribedToUserRecommendations(int uid, Message msg);
+ @CacheEvict(value = { "discussions" }, allEntries = true)
boolean subscribeMessage(Message message, User user);
boolean unSubscribeMessage(int mid, int vuid);