From 85b3db44fe19ca70b9c3af2e5c7905585335a4d4 Mon Sep 17 00:00:00 2001 From: Ahn Jiwan Date: Sun, 12 Nov 2023 15:49:49 +0900 Subject: [PATCH] =?UTF-8?q?:ambulance:=20hotfix:=20key=EA=B0=92=EC=9D=98?= =?UTF-8?q?=20date=20string=EC=9C=BC=EB=A1=9C=20=EB=B3=80=ED=99=98=20(#78)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/diareat/diareat/food/service/FoodService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3a5843c..8098430 100644 --- a/src/main/java/com/diareat/diareat/food/service/FoodService.java +++ b/src/main/java/com/diareat/diareat/food/service/FoodService.java @@ -36,7 +36,7 @@ public class FoodService { private final UserRepository userRepository; // 촬영 후, 음식 정보 저장 - @CacheEvict(value = "ResponseFoodDto", key = "#createFoodDto.getUserId()+#createFoodDto.getDate()", cacheManager = "diareatCacheManager") + @CacheEvict(value = "ResponseFoodDto", key = "#createFoodDto.getUserId()+#createFoodDto.getDate().toString()", cacheManager = "diareatCacheManager") @Transactional public Long saveFood(CreateFoodDto createFoodDto) { if (foodRepository.existsByName(createFoodDto.getName())){