Skip to content
Merged
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 @@ -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(
Expand Down Expand Up @@ -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<String, Long>? {
Expand Down