로딩 속도를 위해 @Cacheable 적용 #50

Merged
klaus merged 9 commits from test into main 2023-10-17 09:31:09 +00:00
2 changed files with 15 additions and 1 deletions
Showing only changes of commit bcdd161205 - Show all commits

View File

@ -0,0 +1,14 @@
package kr.co.vividnext.sodalive.configs
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class JacksonConfig {
@Bean
fun objectMapper(): ObjectMapper {
return ObjectMapper().registerModule(JavaTimeModule())
}
}

View File

@ -446,7 +446,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
@Cacheable(
value = ["weekLivedCache"],
key = "#isAdult" + '_' + "#offset" + '_' + "#limit",
key = "#startDate" + '_' + "#isAdult" + '_' + "#offset" + '_' + "#limit",
cacheManager = "cacheManager"
)
override fun getAudioContentRanking(