From 8b07812a77fe6b0fe740ac193f4fcbf45b8ede21 Mon Sep 17 00:00:00 2001 From: "seungbin.kim" Date: Sun, 2 Mar 2025 23:32:32 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20trend=20=EA=B2=80=EC=83=89=EC=96=B4=20?= =?UTF-8?q?expire=20=EC=8B=9C=EA=B0=84=20=EC=A3=BC=EC=84=9D=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 프론트 요청으로 사라지지 않도록 주석처리 --- .../store/redis/repository/StoreRedisRepositoryImpl.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/infrastructure/store-redis/src/main/kotlin/org/fastcampus/store/redis/repository/StoreRedisRepositoryImpl.kt b/infrastructure/store-redis/src/main/kotlin/org/fastcampus/store/redis/repository/StoreRedisRepositoryImpl.kt index eb97b9ad..241cdaae 100644 --- a/infrastructure/store-redis/src/main/kotlin/org/fastcampus/store/redis/repository/StoreRedisRepositoryImpl.kt +++ b/infrastructure/store-redis/src/main/kotlin/org/fastcampus/store/redis/repository/StoreRedisRepositoryImpl.kt @@ -6,7 +6,6 @@ import org.springframework.data.geo.Point import org.springframework.data.redis.connection.RedisGeoCommands import org.springframework.data.redis.core.RedisTemplate import org.springframework.stereotype.Component -import java.util.concurrent.TimeUnit @Component class StoreRedisRepositoryImpl( @@ -68,7 +67,7 @@ class StoreRedisRepositoryImpl( override fun addSearch(keyword: String) { val currentTime = System.currentTimeMillis() / 1000 redisTemplate.opsForZSet().add("search:$keyword", currentTime.toString(), currentTime.toDouble()) - redisTemplate.expire("search:$keyword", WINDOWDURATION.toLong(), TimeUnit.SECONDS) +// redisTemplate.expire("search:$keyword", WINDOWDURATION.toLong(), TimeUnit.SECONDS) } override fun getTrendKeywords(): Map? {