forked from Fascinated/Bat
impl birthday feature
This commit is contained in:
@ -34,7 +34,7 @@ public class UserService {
|
||||
* @param id The ID of the user
|
||||
* @return The user
|
||||
*/
|
||||
@Cacheable(cacheNames = {"users"}, key = "#id")
|
||||
// @Cacheable(cacheNames = {"users"}, key = "#id")
|
||||
public BatUser getUser(@NonNull String id) {
|
||||
long start = System.currentTimeMillis();
|
||||
Optional<BatUser> optionalUser = userRepository.findById(id);
|
||||
@ -51,7 +51,7 @@ public class UserService {
|
||||
*
|
||||
* @param user The user to save
|
||||
*/
|
||||
@CachePut(cacheNames = {"users"}, key = "#id")
|
||||
// @CachePut(cacheNames = {"users"}, key = "#id")
|
||||
public void saveUser(@NonNull BatUser user) {
|
||||
userRepository.save(user);
|
||||
}
|
||||
|
Reference in New Issue
Block a user