@ PUT @ Consumes ( MediaType . APPLICATION_JSON ) public Response put ( @ PathParam ( "cacheName" ) String cacheName , Cache cache ) { if ( ! cacheService . isPresent ( cacheName ) ) { return Response . status ( Response . Status . NOT_FOUND ) . build ( ) ; } cacheService . update ( cacheName , cache ) ; return Response . ok ( ) . build ( ) ; }
Modify state of a single cache