@@ -46,7 +46,8 @@ public class StampFacade {
4646 @ CacheEvict (
4747 cacheNames = TRIP ,
4848 key =
49- "T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)" )
49+ "T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)" ),
50+ @ CacheEvict (cacheNames = TRIPS , allEntries = true )
5051 })
5152 @ Transactional
5253 public StampInfo createStamp (Long memberId , Long tripId , CreateStampRequest request ) {
@@ -66,7 +67,12 @@ public StampInfo createStamp(Long memberId, Long tripId, CreateStampRequest requ
6667 @ CacheEvict (
6768 cacheNames = STAMP ,
6869 key =
69- "T(com.ject.studytrip.global.common.factory.CacheKeyFactory).stamp(#memberId, #tripId, #stampId)" )
70+ "T(com.ject.studytrip.global.common.factory.CacheKeyFactory).stamp(#memberId, #tripId, #stampId)" ),
71+ @ CacheEvict (
72+ cacheNames = TRIP ,
73+ key =
74+ "T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)" ),
75+ @ CacheEvict (cacheNames = TRIPS , allEntries = true )
7076 })
7177 @ Transactional
7278 public void updateStamp (Long memberId , Long tripId , Long stampId , UpdateStampRequest request ) {
@@ -82,7 +88,12 @@ public void updateStamp(Long memberId, Long tripId, Long stampId, UpdateStampReq
8288 cacheNames = STAMPS ,
8389 key =
8490 "T(com.ject.studytrip.global.common.factory.CacheKeyFactory).stamps(#memberId, #tripId)" ),
85- @ CacheEvict (cacheNames = STAMP , allEntries = true )
91+ @ CacheEvict (cacheNames = STAMP , allEntries = true ),
92+ @ CacheEvict (
93+ cacheNames = TRIP ,
94+ key =
95+ "T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)" ),
96+ @ CacheEvict (cacheNames = TRIPS , allEntries = true )
8697 })
8798 @ Transactional
8899 public void updateStampOrders (Long memberId , Long tripId , UpdateStampOrderRequest request ) {
@@ -104,7 +115,8 @@ public void updateStampOrders(Long memberId, Long tripId, UpdateStampOrderReques
104115 @ CacheEvict (
105116 cacheNames = TRIP ,
106117 key =
107- "T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)" )
118+ "T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)" ),
119+ @ CacheEvict (cacheNames = TRIPS , allEntries = true )
108120 })
109121 @ Transactional
110122 public void deleteStamp (Long memberId , Long tripId , Long stampId ) {
@@ -154,7 +166,8 @@ public StampDetail getStamp(Long memberId, Long tripId, Long stampId) {
154166 @ CacheEvict (
155167 cacheNames = TRIP ,
156168 key =
157- "T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)" )
169+ "T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)" ),
170+ @ CacheEvict (cacheNames = TRIPS , allEntries = true )
158171 })
159172 @ Transactional
160173 public void completeStamp (Long memberId , Long tripId , Long stampId ) {
0 commit comments