Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ public class MissionFacade {
@CacheEvict(
cacheNames = STAMP,
key =
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).stamp(#memberId, #tripId, #stampId)")
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).stamp(#memberId, #tripId, #stampId)"),
@CacheEvict(
cacheNames = TRIP,
key =
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)"),
@CacheEvict(cacheNames = TRIPS, allEntries = true)
})
@Transactional
public MissionInfo createMission(
Expand All @@ -62,7 +67,12 @@ public MissionInfo createMission(
@CacheEvict(
cacheNames = STAMP,
key =
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).stamp(#memberId, #tripId, #stampId)")
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).stamp(#memberId, #tripId, #stampId)"),
@CacheEvict(
cacheNames = TRIP,
key =
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)"),
@CacheEvict(cacheNames = TRIPS, allEntries = true)
})
@Transactional
public void updateMissionNameIfPresent(
Expand All @@ -86,7 +96,12 @@ public void updateMissionNameIfPresent(
@CacheEvict(
cacheNames = STAMP,
key =
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).stamp(#memberId, #tripId, #stampId)")
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).stamp(#memberId, #tripId, #stampId)"),
@CacheEvict(
cacheNames = TRIP,
key =
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)"),
@CacheEvict(cacheNames = TRIPS, allEntries = true)
})
@Transactional
public void deleteMission(Long memberId, Long tripId, Long stampId, Long missionId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public class StampFacade {
@CacheEvict(
cacheNames = TRIP,
key =
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)")
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)"),
@CacheEvict(cacheNames = TRIPS, allEntries = true)
})
@Transactional
public StampInfo createStamp(Long memberId, Long tripId, CreateStampRequest request) {
Expand All @@ -66,7 +67,12 @@ public StampInfo createStamp(Long memberId, Long tripId, CreateStampRequest requ
@CacheEvict(
cacheNames = STAMP,
key =
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).stamp(#memberId, #tripId, #stampId)")
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).stamp(#memberId, #tripId, #stampId)"),
@CacheEvict(
cacheNames = TRIP,
key =
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)"),
@CacheEvict(cacheNames = TRIPS, allEntries = true)
})
@Transactional
public void updateStamp(Long memberId, Long tripId, Long stampId, UpdateStampRequest request) {
Expand All @@ -82,7 +88,12 @@ public void updateStamp(Long memberId, Long tripId, Long stampId, UpdateStampReq
cacheNames = STAMPS,
key =
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).stamps(#memberId, #tripId)"),
@CacheEvict(cacheNames = STAMP, allEntries = true)
@CacheEvict(cacheNames = STAMP, allEntries = true),
@CacheEvict(
cacheNames = TRIP,
key =
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)"),
@CacheEvict(cacheNames = TRIPS, allEntries = true)
})
@Transactional
public void updateStampOrders(Long memberId, Long tripId, UpdateStampOrderRequest request) {
Expand All @@ -104,7 +115,8 @@ public void updateStampOrders(Long memberId, Long tripId, UpdateStampOrderReques
@CacheEvict(
cacheNames = TRIP,
key =
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)")
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)"),
@CacheEvict(cacheNames = TRIPS, allEntries = true)
})
@Transactional
public void deleteStamp(Long memberId, Long tripId, Long stampId) {
Expand Down Expand Up @@ -154,7 +166,8 @@ public StampDetail getStamp(Long memberId, Long tripId, Long stampId) {
@CacheEvict(
cacheNames = TRIP,
key =
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)")
"T(com.ject.studytrip.global.common.factory.CacheKeyFactory).trip(#memberId, #tripId)"),
@CacheEvict(cacheNames = TRIPS, allEntries = true)
})
@Transactional
public void completeStamp(Long memberId, Long tripId, Long stampId) {
Expand Down