diff --git a/src/main/java/com/diareat/diareat/food/service/FoodService.java b/src/main/java/com/diareat/diareat/food/service/FoodService.java index 9e9a315..04fa086 100644 --- a/src/main/java/com/diareat/diareat/food/service/FoodService.java +++ b/src/main/java/com/diareat/diareat/food/service/FoodService.java @@ -47,7 +47,7 @@ public Long saveFood(CreateFoodDto createFoodDto) { } // 회원이 특정 날짜에 먹은 음식 조회 - @Cacheable(value = "ResponseFoodDto", key = "#userId+#date", cacheManager = "diareatCacheManager") + @Cacheable(value = "ResponseFoodDto", key = "#userId+#date.toString()", cacheManager = "diareatCacheManager") @Transactional(readOnly = true) public List getFoodListByDate(Long userId, LocalDate date){ validateUser(userId);