Skip to content

Commit

Permalink
캐시제거
Browse files Browse the repository at this point in the history
  • Loading branch information
gkfktkrh153 committed Aug 15, 2024
1 parent 9f4ea85 commit da2a4ac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/dduckddak/DduckddakApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Population> populations = populationRepository.findFloatingPopulationTransition(code);
List<PopulationData> populationDataList = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public List<SalesTop10OfIndustryResponse> 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> salesForTransitionData = salesRepository.findSalesForTransitionData();

Expand Down Expand Up @@ -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> salesForTransitionData = salesRepository.findSalesByIndustryForTransitionData(industryName);

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dduckddak/global/config/CacheConfig.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*
package com.dduckddak.global.config;
import lombok.RequiredArgsConstructor;
Expand Down Expand Up @@ -68,3 +69,4 @@ public RedisCacheManager redisCacheManager() {
.cacheDefaults(redisCacheConfiguration).build();
}
}
*/

0 comments on commit da2a4ac

Please sign in to comment.