// DELETE @RequestMapping(method = RequestMethod.DELETE) @PreAuthorize(RoleConstants.HAS_ROLE_ADMIN) public void clearAll() { cacheService.clearAll(); }
@RequestMapping(value = "/{cache}", method = RequestMethod.DELETE) @PreAuthorize(RoleConstants.HAS_ROLE_ADMIN) public void clearOne(@PathVariable("cache") String cache) throws EntityNotFoundException { cacheService.clearOne(cache); }
// GET @RequestMapping(method = RequestMethod.GET) @PreAuthorize(RoleConstants.HAS_ROLE_ADMIN) public Iterable<String> getAllCacheNames() { return cacheService.getAllCacheNames(); }