From da2a4ac2a83a344d6bbd506643606f6df9ed4577 Mon Sep 17 00:00:00 2001 From: gkfktkrh153 Date: Thu, 15 Aug 2024 19:21:43 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BA=90=EC=8B=9C=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/dduckddak/DduckddakApplication.java | 2 +- .../domain/data/population/service/PopulationService.java | 2 +- .../com/dduckddak/domain/data/sales/service/SalesService.java | 4 ++-- src/main/java/com/dduckddak/global/config/CacheConfig.java | 2 ++ 4 files changed, 6 insertions(+), 4 deletions(-) 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(); } } +*/