From 7ed6b961595612e992fd559caa2af65b35e5b179 Mon Sep 17 00:00:00 2001 From: KwonJuHwan <118177454+KwonJuHwan@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:30:56 +0900 Subject: [PATCH] =?UTF-8?q?[refactor]=20=EC=9D=BC=EA=B0=84=20=EC=BF=A0?= =?UTF-8?q?=ED=8F=B0=20=EB=A6=AC=ED=8F=AC=ED=8A=B8=20=EC=BA=90=EC=8B=B1=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/coolpeace/domain/coupon/service/CouponQueryService.java | 1 - .../java/com/coolpeace/domain/coupon/service/CouponService.java | 1 - 2 files changed, 2 deletions(-) diff --git a/src/main/java/com/coolpeace/domain/coupon/service/CouponQueryService.java b/src/main/java/com/coolpeace/domain/coupon/service/CouponQueryService.java index dba5728..feabc82 100644 --- a/src/main/java/com/coolpeace/domain/coupon/service/CouponQueryService.java +++ b/src/main/java/com/coolpeace/domain/coupon/service/CouponQueryService.java @@ -17,7 +17,6 @@ public class CouponQueryService { private final CouponRepository couponRepository; - @Cacheable(value = "dailyReport", key = "#accommodationId",cacheManager = "contentCacheManager") public CouponDailyResponse dailyReport(String jwtPrincipal, Long accommodationId) { Long memberId = Long.valueOf(jwtPrincipal); diff --git a/src/main/java/com/coolpeace/domain/coupon/service/CouponService.java b/src/main/java/com/coolpeace/domain/coupon/service/CouponService.java index d2d573f..b30c96f 100644 --- a/src/main/java/com/coolpeace/domain/coupon/service/CouponService.java +++ b/src/main/java/com/coolpeace/domain/coupon/service/CouponService.java @@ -89,7 +89,6 @@ public List getRecentHistory(Long memberId) { } @Transactional - @CacheEvict(value = "dailyReport", key = "#couponRegisterRequest.accommodationId()", cacheManager = "contentCacheManager") public void register(Long memberId, CouponRegisterRequest couponRegisterRequest) { Member storedMember = memberRepository.findById(memberId) .orElseThrow(MemberNotFoundException::new);