Skip to content

Commit

Permalink
[Fix] 계좌 전체 조회에 캐싱 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
ohyujeong committed Jun 24, 2024
1 parent 1adea13 commit e492d29
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/flab/tess/service/AccountService.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ public Account getAccountOne(BigInteger accountId){
return accountRepository.findById(accountId).orElse(null);
}

@Cacheable(value = "accounts", key = "#user.userId")
public List<Account> getAccounts(User user){
return accountRepository.findByUser(user);
}

@Transactional
@CacheEvict(value = "accounts", key = "#user.userId")
public Account saveAccount(AccountCreateRequest accountCreateRequest, User user){
Account account = Account.of(
user,
Expand Down

0 comments on commit e492d29

Please sign in to comment.