File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/kotlin/gogo/gogostage/domain/team/root/application Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,16 @@ import gogo.gogostage.domain.team.participant.persistence.TeamParticipantReposit
77import gogo.gogostage.domain.team.root.application.dto.TeamApplyDto
88import gogo.gogostage.domain.team.root.persistence.Team
99import gogo.gogostage.domain.team.root.persistence.TeamRepository
10+ import gogo.gogostage.global.cache.CacheConstant
11+ import gogo.gogostage.global.cache.RedisCacheService
1012import org.springframework.stereotype.Component
1113
1214@Component
1315class TeamProcessor (
1416 private val teamRepository : TeamRepository ,
1517 private val teamParticipantRepository : TeamParticipantRepository ,
16- private val gameRepository : GameRepository
18+ private val gameRepository : GameRepository ,
19+ private val redisCacheService : RedisCacheService
1720) {
1821
1922 fun apply (game : Game , dto : TeamApplyDto ) {
@@ -27,6 +30,8 @@ class TeamProcessor(
2730 TeamParticipant .of(team, it.studentId, it.positionX, it.positionY)
2831 }
2932 teamParticipantRepository.saveAll(participants)
33+
34+ redisCacheService.deleteFromCache(" ${CacheConstant .GAME_CACHE_VALE } ::${game.stage.id} " )
3035 }
3136
3237}
You can’t perform that action at this time.
0 commit comments