aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/MessagesService.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-08-09 11:47:22 +0300
committerGravatar Vitaly Takmazov2019-08-09 11:47:22 +0300
commit4d67541a40fffd9ec93e314d05ad4d53734473dd (patch)
treeb75110090cb791c3ecfd4a6546913abd727d69a1 /src/main/java/com/juick/service/MessagesService.java
parenteb3a8ffb7500ca399e3d54faf185d21f4dbd0b1b (diff)
Revert "Caching configuration for users and discussions"
This reverts commit c8eeadee42695ed67dac47dbb9d7a66a1c9a8c6d.
Diffstat (limited to 'src/main/java/com/juick/service/MessagesService.java')
-rw-r--r--src/main/java/com/juick/service/MessagesService.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main/java/com/juick/service/MessagesService.java b/src/main/java/com/juick/service/MessagesService.java
index 490e0cfc..e98b2b1d 100644
--- a/src/main/java/com/juick/service/MessagesService.java
+++ b/src/main/java/com/juick/service/MessagesService.java
@@ -22,8 +22,6 @@ import com.juick.Reaction;
import com.juick.User;
import com.juick.model.ResponseReply;
import org.apache.commons.lang3.tuple.Pair;
-import org.springframework.cache.annotation.CacheEvict;
-import org.springframework.cache.annotation.Cacheable;
import java.net.URI;
import java.util.*;
@@ -32,10 +30,8 @@ import java.util.*;
* Created by aalexeev on 11/13/16.
*/
public interface MessagesService {
- @CacheEvict(value = "discussions", allEntries = true)
int createMessage(int uid, String txt, String attachment, List<com.juick.Tag> tags);
- @CacheEvict(value = "discussions", allEntries = true)
int createReply(int mid, int rid, User user, String txt, String attachment);
int getReplyIDIncrement(int mid);
@@ -87,7 +83,6 @@ public interface MessagesService {
List<Integer> getPrivate(int uid, int before);
- @Cacheable(value = "discussions", key="#uid")
List<Integer> getDiscussions(int uid, Long to);
List<Integer> getRecommended(int uid, int before);