packagepwc.taxtech.atms.controller;importjava.util.List;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.http.MediaType;importorg.springframework.web.bind.annotation.RequestMapping;importorg.springframework.web.bind.annotation.RequestMethod;importorg.springframework.web.bind.annotation.RequestParam;importorg.springframework.web.bind.annotation.ResponseBody;importorg.springframework.web.bind.annotation.RestController;importio.swagger.annotations.ApiOperation;importpwc.taxtech.atms.dto.CacheDto;importpwc.taxtech.atms.service.CacheService;@RestController@RequestMapping("/api/v1/cache/")publicclassCacheController{@AutowiredprivateCacheServicecacheService;@ApiOperation(value="Get all cache")@RequestMapping(value="getallcache",method=RequestMethod.GET,produces=MediaType.APPLICATION_JSON_UTF8_VALUE)public@ResponseBodyList<CacheDto>getAllCache(){returncacheService.getAllCache();}@ApiOperation(value="Get cache by key")@RequestMapping(value="getcachebykey",method=RequestMethod.GET,produces=MediaType.APPLICATION_JSON_UTF8_VALUE)publicCacheDtogetCacheByKey(@RequestParam("cacheKey")StringcacheKey){returncacheService.getCacheByKey(cacheKey);}}