缓存 (caches)
原文:https://docs.spring.io/spring-boot/api/rest/actuator/caches.html
caches 端点提供对应用缓存的访问。
检索所有缓存
向 /actuator/caches 发出 GET 请求:
$ curl 'http://localhost:8080/actuator/caches' -i -X GET
响应包含 cacheManagers 对象,每个缓存管理器包含其 caches 映射,每个缓存包含 target(目标实现)等字段。
按名称检索缓存
向 /actuator/caches/{name} 发出 GET 请求可检索特定缓存。
清除缓存
向 /actuator/caches/{name} 发出 DELETE 请求可清除缓存。支持 ?cacheManager=<name> 参数指定缓存管理器。