Skip to content

Commit

Permalink
add: 전체 직업 통계 조회에 캐싱 기능 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
pandahwang committed Oct 7, 2024
1 parent 05aeb16 commit fe8c1fb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.TeamNull.LostArk.LostArk.service.OuterDataService;
import lombok.RequiredArgsConstructor;
import org.json.simple.parser.ParseException;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
Expand All @@ -18,7 +19,7 @@ public class OuterDataController {
private final OuterDataService outerDataService;

// 목표 : Get 요청 시 api로부터 데이터를 받아와 저장 후 반환하도록 구현.

@Cacheable(cacheNames = "getOuterData", key = "outerdata", cacheManager = "cacheManager")
@GetMapping("/statistics/alluser")
public List<OuterDataDto> alluser() {
List<OuterDataDto> resData = null;
Expand Down

0 comments on commit fe8c1fb

Please sign in to comment.