test #197

Merged
klaus merged 12 commits from test into main 2024-07-08 14:17:42 +00:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit 80a78a036e - Show all commits

View File

@ -10,7 +10,7 @@ import org.springframework.transaction.annotation.Transactional
class AdminCalculateService(private val repository: AdminCalculateQueryRepository) {
@Transactional(readOnly = true)
@Cacheable(
cacheNames = ["default"],
cacheNames = ["cache_ttl_3_hours"],
key = "'calculateLive:' + " + "#startDateStr + ':' + #endDateStr"
)
fun getCalculateLive(startDateStr: String, endDateStr: String): List<GetCalculateLiveResponse> {
@ -67,6 +67,11 @@ class AdminCalculateService(private val repository: AdminCalculateQueryRepositor
.map { it.toGetCalculateContentDonationResponse() }
}
@Transactional(readOnly = true)
@Cacheable(
cacheNames = ["cache_ttl_3_hours"],
key = "'calculateCommunityPost:' + " + "#startDateStr + ':' + #endDateStr + ':' + #offset"
)
fun getCalculateCommunityPost(
startDateStr: String,
endDateStr: String,