diff options
author | Vitaly Takmazov | 2019-08-09 11:47:22 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-08-09 11:47:22 +0300 |
commit | 4d67541a40fffd9ec93e314d05ad4d53734473dd (patch) | |
tree | b75110090cb791c3ecfd4a6546913abd727d69a1 /src/main/java/com/juick/service/UserService.java | |
parent | eb3a8ffb7500ca399e3d54faf185d21f4dbd0b1b (diff) |
Revert "Caching configuration for users and discussions"
This reverts commit c8eeadee42695ed67dac47dbb9d7a66a1c9a8c6d.
Diffstat (limited to 'src/main/java/com/juick/service/UserService.java')
-rw-r--r-- | src/main/java/com/juick/service/UserService.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/com/juick/service/UserService.java b/src/main/java/com/juick/service/UserService.java index 63b75110..0d4efcfc 100644 --- a/src/main/java/com/juick/service/UserService.java +++ b/src/main/java/com/juick/service/UserService.java @@ -20,10 +20,9 @@ package com.juick.service; import com.juick.Message; import com.juick.User; import com.juick.model.Auth; -import org.springframework.cache.annotation.CacheEvict; -import org.springframework.cache.annotation.Cacheable; import javax.annotation.Nonnull; +import java.time.Instant; import java.util.Collection; import java.util.List; import java.util.Optional; @@ -41,12 +40,10 @@ public interface UserService { String getSignUpHashByTelegramID(Long telegramId, String username); - @CacheEvict(value = "users_by_name", allEntries = true) Optional<User> createUser(String username, String password); Optional<User> getUserByUID(int uid); - @Cacheable(value = "users_by_name") @Nonnull User getUserByName(String username); @Nonnull User getUserByEmail(String email); |