Skip to content

Commit

Permalink
test: 큰 객체 캐싱 제외
Browse files Browse the repository at this point in the history
  • Loading branch information
belljun3395 committed Jan 15, 2025
1 parent 59eb065 commit 84bbf2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.few.api.domain.article.repo

import com.few.api.config.ApiLocalCacheConfig.Companion.ARTICLE_CONTENT_CACHE
import com.few.api.config.ApiLocalCacheConfig.Companion.LOCAL_CM
import com.few.api.config.ApiLocalCacheConfig.Companion.SELECT_ARTICLE_RECORD_CACHE
import com.few.api.domain.article.repo.command.InsertFullArticleRecordCommand
Expand Down Expand Up @@ -128,7 +127,7 @@ class ArticleDao(
.and(MappingWorkbookArticle.MAPPING_WORKBOOK_ARTICLE.DAY_COL.eq(query.day))
.query

@Cacheable(key = "#articleId", cacheManager = LOCAL_CM, cacheNames = [ARTICLE_CONTENT_CACHE])
// @Cacheable(key = "#articleId", cacheManager = LOCAL_CM, cacheNames = [ARTICLE_CONTENT_CACHE])
fun selectArticleContent(articleId: Long) =
dslContext
.select(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.few.api.domain.article.repo

import com.few.api.config.ApiLocalCacheConfig.Companion.ARTICLE_MAIN_CARD_RECORD_CACHE
import com.few.api.config.ApiLocalCacheConfig.Companion.LOCAL_CM
import com.few.api.domain.article.repo.command.ArticleMainCardExcludeWorkbookCommand
import com.few.api.domain.article.repo.command.UpdateArticleMainCardWorkbookCommand
import com.few.api.domain.article.repo.record.ArticleMainCardRecord
Expand All @@ -10,7 +8,6 @@ import com.few.api.domain.article.repo.support.CommonJsonMapper
import jooq.jooq_dsl.tables.ArticleMainCard.ARTICLE_MAIN_CARD
import org.jooq.*
import org.jooq.impl.DSL.*
import org.springframework.cache.annotation.Cacheable
import org.springframework.stereotype.Repository

@Repository
Expand All @@ -19,7 +16,7 @@ class ArticleMainCardDao(
private val commonJsonMapper: CommonJsonMapper,
private val articleMainCardMapper: ArticleMainCardMapper,
) {
@Cacheable(key = "#articleId", cacheManager = LOCAL_CM, cacheNames = [ARTICLE_MAIN_CARD_RECORD_CACHE])
// @Cacheable(key = "#articleId", cacheManager = LOCAL_CM, cacheNames = [ARTICLE_MAIN_CARD_RECORD_CACHE])
fun selectArticleMainCardsRecord(articleId: Long): ArticleMainCardRecord? =
dslContext
.select(
Expand Down

0 comments on commit 84bbf2c

Please sign in to comment.