diff --git a/api/src/main/kotlin/com/nexters/bottles/api/admin/facade/AdminFacade.kt b/api/src/main/kotlin/com/nexters/bottles/api/admin/facade/AdminFacade.kt index 99bd4ef..b1b44a2 100644 --- a/api/src/main/kotlin/com/nexters/bottles/api/admin/facade/AdminFacade.kt +++ b/api/src/main/kotlin/com/nexters/bottles/api/admin/facade/AdminFacade.kt @@ -130,6 +130,9 @@ class AdminFacade( CacheEvict(PING_PONG_BOTTLE_LIST, key = "1"), CacheEvict(PING_PONG_BOTTLE_LIST, key = "2"), CacheEvict(PING_PONG_BOTTLE_LIST, key = "9"), + CacheEvict(PING_PONG_BOTTLE_LIST, key = "1 + '-v2'"), + CacheEvict(PING_PONG_BOTTLE_LIST, key = "2 + '-v2'"), + CacheEvict(PING_PONG_BOTTLE_LIST, key = "9 + '-v2'"), ] ) fun forceCleanUp() { diff --git a/app/src/main/kotlin/com/nexters/bottles/app/bottle/service/BottleCachingService.kt b/app/src/main/kotlin/com/nexters/bottles/app/bottle/service/BottleCachingService.kt index df6d0a9..31d2375 100644 --- a/app/src/main/kotlin/com/nexters/bottles/app/bottle/service/BottleCachingService.kt +++ b/app/src/main/kotlin/com/nexters/bottles/app/bottle/service/BottleCachingService.kt @@ -31,7 +31,9 @@ class BottleCachingService( @Caching( evict = [ CacheEvict(PING_PONG_BOTTLE_LIST, key = "#sourceUserId"), - CacheEvict(PING_PONG_BOTTLE_LIST, key = "#targetUserId") + CacheEvict(PING_PONG_BOTTLE_LIST, key = "#targetUserId"), + CacheEvict(PING_PONG_BOTTLE_LIST, key = "#sourceUserId + '-v2'"), + CacheEvict(PING_PONG_BOTTLE_LIST, key = "#targetUserId + '-v2'"), ] ) fun evictPingPongList(sourceUserId: Long, targetUserId: Long) {