aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/service')
-rw-r--r--src/main/java/com/juick/service/UserService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/UserService.java b/src/main/java/com/juick/service/UserService.java
index eeabf42e..05725b73 100644
--- a/src/main/java/com/juick/service/UserService.java
+++ b/src/main/java/com/juick/service/UserService.java
@@ -100,7 +100,7 @@ public interface UserService {
List<User> getUserFriends(int uid);
List<User> getUserBLUsers(int uid);
-
+ @CacheEvict(value = "twitter_user", key="{ #user.getUid() }")
boolean linkTwitterAccount(User user, String accessToken, String accessTokenSecret, String screenName);
int getStatsMessages(int uid);
@@ -127,6 +127,7 @@ public interface UserService {
Optional<ExternalToken> getTwitterToken(int uid);
+ @CacheEvict(value = "twitter_user", key="{ #uid }")
boolean deleteTwitterToken(Integer uid);
void addFacebookState(String state, String redirectUri);
@@ -146,6 +147,7 @@ public interface UserService {
void disableFBCrosspost(Integer uid);
@Nonnull
+ @Cacheable(value = "twitter_user")
String getTwitterName(int uid);
String getTelegramName(int uid);