diff options
Diffstat (limited to 'src/main/java/com/juick/service/PrivacyQueriesService.java')
-rw-r--r-- | src/main/java/com/juick/service/PrivacyQueriesService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/juick/service/PrivacyQueriesService.java b/src/main/java/com/juick/service/PrivacyQueriesService.java index e4b1da25..68c157f6 100644 --- a/src/main/java/com/juick/service/PrivacyQueriesService.java +++ b/src/main/java/com/juick/service/PrivacyQueriesService.java @@ -20,6 +20,8 @@ package com.juick.service; import com.juick.model.Tag; import com.juick.model.User; +import org.springframework.cache.annotation.CacheEvict; + /** * Created by aalexeev on 11/13/16. */ @@ -28,7 +30,9 @@ public interface PrivacyQueriesService { Removed, Added } + @CacheEvict(value = { "discussions", "messages", "replies" }, allEntries = true) PrivacyResult blacklistUser(User user, User target); + @CacheEvict(value = { "discussions", "messages", "replies" }, allEntries = true) PrivacyResult blacklistTag(User user, Tag tag); } |