Skip to content

Document default metadata cache expiration policy #1391

@mmoayyed

Description

@mmoayyed

Using version 0.13.0; At the moment, the default cache customizer does the following:

                @Override
		public void customize(javax.cache.CacheManager cacheManager) {
			createMissingCache(cacheManager, "initializr.metadata",
					() -> config().setExpiryPolicyFactory(CreatedExpiryPolicy.factoryOf(Duration.TEN_MINUTES)));
			createMissingCache(cacheManager, "initializr.dependency-metadata", this::config);
			createMissingCache(cacheManager, "initializr.project-resources", this::config);
			createMissingCache(cacheManager, "initializr.templates", this::config);
		}
  • Could the expiration policy, that is Duration.TEN_MINUTES, be configurable via application properties? (I am not sure if it's possible to customize this after the fact)
  • Could this be documented? Was not able to find it here.

I am happy to help and submit a PR if you find this to be reasonable.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions