여러대의 Redis와 Valkey에 연결할 수 있도록 환경설정

This commit is contained in:
2024-11-22 17:54:23 +09:00
parent 831bd731ca
commit 157e3a39b6
10 changed files with 122 additions and 113 deletions

View File

@@ -28,7 +28,6 @@ import kr.co.vividnext.sodalive.member.Member
import kr.co.vividnext.sodalive.member.block.BlockMemberRepository
import kr.co.vividnext.sodalive.utils.generateFileName
import org.springframework.beans.factory.annotation.Value
import org.springframework.cache.annotation.Cacheable
import org.springframework.context.ApplicationEventPublisher
import org.springframework.data.repository.findByIdOrNull
import org.springframework.stereotype.Service
@@ -717,11 +716,6 @@ class AudioContentService(
}
@Transactional(readOnly = true)
@Cacheable(
cacheNames = ["cache_ttl_3_days"],
key = "'contentRanking:' + ':' +" +
"#isAdult + ':' + #startDate + ':' + #endDate + ':' + #sortType + ':' + #offset + ':' + #limit"
)
fun getAudioContentRanking(
isAdult: Boolean,
startDate: LocalDateTime,