Skip to content

Commit

Permalink
chore: 캐시 이름 변경 및 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
skylar1220 committed Nov 5, 2024
1 parent dc3807c commit dd77084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class CacheManagerConfig {

@Bean
public CacheManager cacheManager(Caffeine caffeine) {
CaffeineCacheManager caffeineCacheManager = new CaffeineCacheManager();
CaffeineCacheManager caffeineCacheManager = new CaffeineCacheManager("templateCache");
caffeineCacheManager.setCaffeine(caffeine);
return caffeineCacheManager;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class TemplateMapper {
private final OptionGroupRepository optionGroupRepository;
private final OptionItemRepository optionItemRepository;

@Cacheable(value = "template", key = "#reviewGroup.templateId")
@Cacheable(value = "templateCache", key = "#reviewGroup.templateId")
public TemplateResponse mapToTemplateResponse(ReviewGroup reviewGroup) {
Template template = templateRepository.findById(reviewGroup.getTemplateId())
.orElseThrow(() -> new TemplateNotFoundByReviewGroupException(
Expand Down

0 comments on commit dd77084

Please sign in to comment.