From d1da7bf82a59188fe06764b5fd74765070bd44c1 Mon Sep 17 00:00:00 2001 From: Miseong Kim Date: Thu, 17 Oct 2024 23:52:14 +0900 Subject: [PATCH] =?UTF-8?q?[Fix/518]=20=ED=95=91=ED=90=81=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=20=EC=A1=B0=ED=9A=8C=20v2=20API=EB=A5=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=ED=95=9C=EB=8B=A4=20(#519)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/nexters/bottles/api/admin/facade/AdminFacade.kt | 3 +++ .../bottles/app/bottle/service/BottleCachingService.kt | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) 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) {