diff options
author | Vitaly Takmazov | 2023-01-22 20:57:17 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-22 20:57:17 +0300 |
commit | b08f5b104bdd98e2b422420479a1a962a4fb9d78 (patch) | |
tree | ef94a72be2aff434a2f8a8d05a149c0fe54763f7 /src/main/java/com/juick/service/UserService.java | |
parent | 478a7bfba88401c1996d0be5a144459011b60e10 (diff) |
twitter_user cache
Diffstat (limited to 'src/main/java/com/juick/service/UserService.java')
-rw-r--r-- | src/main/java/com/juick/service/UserService.java | 4 |
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); |