Controller에 전달된 요청을 처리하기 위한 실질적인 로직을 담당하는 클래스
로직을 처리하고 Controller로 결과를 반환한다.
Title | Method Name | Request Param | Response Type |
---|---|---|---|
캐시 조회 | findCacheListByKeyParams | String key : 조회할 캐시의 Key 값 | CacheGetResponse : 캐시의 정보를 담은 Response 객체 |
패턴과 일치하는 캐시 조회 | findCacheList | String pattern : 조회할 캐시 목록의 패턴 값 | List<CacheGetResponse> : 조회한 캐시들의 정보를 담은 Response 객체 |
전체 캐시 조회 | findAllCache | List<CacheGetResponse> : 조회한 캐시들의 정보를 담은 Response 객체 | |
캐시 생성 및 덮어쓰기 | saveOrUpdate | String key : 생성할 캐시의 Key 값 | |
String value : 생성할 캐시의 Value 값 | |||
int expiredTime : 생성할 캐시의 만료시간 | CacheGetResponse : 생성한 캐시의 정보를 담은 Response 객체 | ||
캐시 삭제 | deleteCacheById | String key : 삭제할 캐시의 Key 값 | ResponseEntity.204code |
다중 캐시 삭제 | deleteCacheList | String pattern : 삭제할 캐시 목록의 패턴 값 | ResponseEntity.204code |
WebClient 사용이유