diff --git a/src/main/java/com/dduckddak/DduckddakApplication.java b/src/main/java/com/dduckddak/DduckddakApplication.java index 3184f72..43913c3 100644 --- a/src/main/java/com/dduckddak/DduckddakApplication.java +++ b/src/main/java/com/dduckddak/DduckddakApplication.java @@ -10,7 +10,7 @@ @OpenAPIDefinition(servers = { @Server(url = "https://api.gadduck.info", description = "Default Server URL") }) -@EnableCaching +//@EnableCaching public class DduckddakApplication { public static void main(String[] args) { SpringApplication.run(DduckddakApplication.class, args); diff --git a/src/main/java/com/dduckddak/domain/data/population/service/PopulationService.java b/src/main/java/com/dduckddak/domain/data/population/service/PopulationService.java index c6f3273..7a0d7e3 100644 --- a/src/main/java/com/dduckddak/domain/data/population/service/PopulationService.java +++ b/src/main/java/com/dduckddak/domain/data/population/service/PopulationService.java @@ -73,7 +73,7 @@ else if(age.equals("60")) return populationRepository.findPopulationsTop10(columnName, orderCriteria, "'residentPopulation'"); } - @Cacheable(value = "postsCache2", cacheManager = "redisCacheManager") + //@Cacheable(value = "postsCache2", cacheManager = "redisCacheManager") public PopulationTransitionResponse getFloatingPopulationTransition(String code) { List populations = populationRepository.findFloatingPopulationTransition(code); List populationDataList = new ArrayList<>(); diff --git a/src/main/java/com/dduckddak/domain/data/sales/service/SalesService.java b/src/main/java/com/dduckddak/domain/data/sales/service/SalesService.java index fd25004..54ffac1 100644 --- a/src/main/java/com/dduckddak/domain/data/sales/service/SalesService.java +++ b/src/main/java/com/dduckddak/domain/data/sales/service/SalesService.java @@ -39,7 +39,7 @@ public List getSalesTop10OfIndustry(String name, S return salesRepository.findSalesTop10OfIndustry(name, orderCriteria); } - @Cacheable(value = "postsCache1", cacheManager = "redisCacheManager") + //@Cacheable(value = "postsCache1", cacheManager = "redisCacheManager") public SalesTransitionResponse getSalesTransition(String code) { List salesForTransitionData = salesRepository.findSalesForTransitionData(); @@ -76,7 +76,7 @@ public SalesTransitionResponse getSalesTransition(String code) { return SalesTransitionResponse.from(salesDataList, districtCount, differenceFromPreviousQuarter, differenceFromPreviousYear); } - @Cacheable(value = "postsCache", cacheManager = "redisCacheManager") + //@Cacheable(value = "postsCache", cacheManager = "redisCacheManager") public SalesTransitionByIndustryResponse getSalesTransitionByIndustry(String townCode, String industryName) { List salesForTransitionData = salesRepository.findSalesByIndustryForTransitionData(industryName); diff --git a/src/main/java/com/dduckddak/global/config/CacheConfig.java b/src/main/java/com/dduckddak/global/config/CacheConfig.java index aae96ae..b5726cb 100644 --- a/src/main/java/com/dduckddak/global/config/CacheConfig.java +++ b/src/main/java/com/dduckddak/global/config/CacheConfig.java @@ -1,3 +1,4 @@ +/* package com.dduckddak.global.config; import lombok.RequiredArgsConstructor; @@ -68,3 +69,4 @@ public RedisCacheManager redisCacheManager() { .cacheDefaults(redisCacheConfiguration).build(); } } +*/