Skip to content

Commit

Permalink
Merge pull request #79 from CAUSOLDOUTMEN/hotfix/78-redis-cache
Browse files Browse the repository at this point in the history
hotfix: key값의 date string으로 변환 (#78)
  • Loading branch information
synoti21 authored Nov 12, 2023
2 parents 3552758 + 85b3db4 commit 4f9b7ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())){
Expand Down

0 comments on commit 4f9b7ef

Please sign in to comment.