Skip to content

Commit cc32fe1

Browse files
authored
Merge pull request #90 from SWYP-mingling/fix/SW-94-cacheable-runtime-exception
[SW-94] fix: 장소추천 API 런타임 오류 수정
2 parents bca9d7a + 8ba1064 commit cc32fe1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/swyp/mingling/domain/meeting/service/RecommendPlaceUseCase.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ public class RecommendPlaceUseCase {
3434
* @param size 조회할 개수 (기본값 15)
3535
* @return 추천 장소 목록
3636
*/
37-
@Cacheable
37+
@Cacheable(
38+
cacheNames = "place-recommend",
39+
cacheManager = "placeCacheManager",
40+
key = "'recommend:' + #midPlace + ':' + #category + ':' + #page + ':' + #size"
41+
)
3842
public RecommendResponse execute(String midPlace, String category, int page, int size) {
3943

4044
log.info("[CACHE MISS] Call Kakao place search API - midPlace: {}, category: {}, page: {}, size: {}"

0 commit comments

Comments
 (0)