From eeb7d968daf1ae5775a46fb8d0ef3bee55960334 Mon Sep 17 00:00:00 2001 From: oosedus Date: Thu, 12 Sep 2024 04:08:47 +0900 Subject: [PATCH] =?UTF-8?q?[refactor]=20=EC=BA=90=EC=8B=B1=20=EC=BB=A4?= =?UTF-8?q?=EB=A6=AC=EC=96=B4=20=EB=B3=B4=EB=93=9C=EC=97=90=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/letscareer/career/service/CareerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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