mirror of
https://gitee.com/dcren/initializr.git
synced 2025-04-05 08:53:10 +08:00
Document default metadata cache expiration policy
Closes gh-1391
This commit is contained in:
parent
447e9e438e
commit
fd76c7d0a3
@ -1155,8 +1155,12 @@ automatically:
|
||||
If you use the service, you'll notice that the logs have lots of entries with the message
|
||||
`Fetching boot metadata from https://api.spring.io/projects/spring-boot/releases`. To avoid
|
||||
checking for the latest Spring Boot versions too often, you should enable caching on your
|
||||
service. Spring Initializr has some auto-configuration to apply the proper caches if you
|
||||
are willing to use a JCache (JSR-107) implementation.
|
||||
service.
|
||||
|
||||
Spring Initializr has an auto-configuration for the requested caches if you are willing to
|
||||
use a JCache (JSR-107) implementation. By default, the service metadata cache is
|
||||
configured with an expiration policy that allows entries to remain in the cache for 10
|
||||
minutes.
|
||||
|
||||
NOTE: The caches are created with an auto-configured `JCacheManagerCustomizer` with order `0` and only if they don't exist already.
|
||||
You can contribute a bean of the same type with a lower `@Order` to override some of the configuration to suit your specific needs.
|
||||
|
Loading…
Reference in New Issue
Block a user