Skip to content

Commit

Permalink
Revert "[feat] redis 캐싱 추가"
Browse files Browse the repository at this point in the history
  • Loading branch information
dogsub authored Feb 19, 2025
1 parent 5289a86 commit 1c1435d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.util.List;
import java.util.stream.Collectors;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
Expand Down Expand Up @@ -113,9 +112,7 @@ public InvitationResponseDto getInvitation(UserDetails userDetails, Long invitat
}

// 청첩장 목록 조회 (생성일 기준 오름차순)
@Cacheable(value = "memberInvitations", key = "#userDetails.username", unless = "#result == null")
public List<InvitationResponseDto> getMemberInvitations(UserDetails userDetails) {
log.info("DB에서 청첩장 목록 조회 실행"); // 캐시가 적용되지 않은 경우에만 로그 출력
Member member = getMember(userDetails);

List<Invitation> invitations = invitationRepository.findByMemberIdOrderByCreatedAtAsc(member.getId());
Expand Down

This file was deleted.

0 comments on commit 1c1435d

Please sign in to comment.