diff --git a/src/main/java/com/example/letscareer/career/service/CareerService.java b/src/main/java/com/example/letscareer/career/service/CareerService.java index dbb5157..b123e17 100644 --- a/src/main/java/com/example/letscareer/career/service/CareerService.java +++ b/src/main/java/com/example/letscareer/career/service/CareerService.java @@ -62,6 +62,7 @@ public GetCareerDetailResponse getCareerDetail(Long userId, Long careerId) { } @Transactional + @Cacheable(value = "CareersCache", key = "#userId", unless = "#result == null || #result.careers.size() == 0") public GetCareersResponse getCareers(Long userId, int page, int size, List category) { User user = getUser(userId); Pageable pageable = PageRequest.of(page - 1, size); @@ -72,7 +73,6 @@ public GetCareersResponse getCareers(Long userId, int page, int size, List