@ Override @ PreAuthorize ( SpringEvalExpressions . HAS_AUTH_SYSTEM_ADMIN ) public ResponseEntity < Collection < MgmtSystemCache > > getCaches ( ) { final Collection < String > cacheNames = cacheManager . getCacheNames ( ) ; return ResponseEntity . ok ( cacheNames . stream ( ) . map ( cacheManager :: getCache ) . map ( this :: cacheRest ) . collect ( Collectors . toList ( ) ) ) ; }
Returns a list of all caches .