Polish "Add cache actuator endpoint"
This commit improves the initial proposal by providing a by name read operation that returns the detail of a particular cache. It also adds more tests and complete API documentation for the feature. Closes gh-12216
This commit is contained in:
@@ -1182,6 +1182,10 @@ content into your application. Rather, pick only the properties that you need.
|
||||
management.endpoint.beans.cache.time-to-live=0ms # Maximum time that a response can be cached.
|
||||
management.endpoint.beans.enabled=true # Whether to enable the beans endpoint.
|
||||
|
||||
# CACHES ENDPOINT ({sc-spring-boot-actuator-autoconfigure}/cache/CachesEndpoint.{sc-ext}[CachesEndpoint])
|
||||
management.endpoint.caches.cache.time-to-live=0ms # Maximum time that a response can be cached.
|
||||
management.endpoint.caches.enabled=true # Whether to enable the caches endpoint.
|
||||
|
||||
# CONDITIONS REPORT ENDPOINT ({sc-spring-boot-actuator-autoconfigure}/condition/ConditionsReportEndpoint.{sc-ext}[ConditionsReportEndpoint])
|
||||
management.endpoint.conditions.cache.time-to-live=0ms # Maximum time that a response can be cached.
|
||||
management.endpoint.conditions.enabled=true # Whether to enable the conditions endpoint.
|
||||
|
||||
@@ -75,6 +75,10 @@ The following technology-agnostic endpoints are available:
|
||||
|Displays a complete list of all the Spring beans in your application.
|
||||
|Yes
|
||||
|
||||
|`caches`
|
||||
|Exposes available caches.
|
||||
|Yes
|
||||
|
||||
|`conditions`
|
||||
|Shows the conditions that were evaluated on configuration and auto-configuration
|
||||
classes and the reasons why they did or did not match.
|
||||
|
||||
Reference in New Issue
Block a user