We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try reducing amount of custom code by using newly introduced method registerCustomCache.
registerCustomCache
Links:
The text was updated successfully, but these errors were encountered:
Simple customizer:
CacheManagerCustomizer<CaffeineCacheManager> { cacheManager -> for (spec in Binder.get(env).bindOrCreate("caffeine.specs", HashMap::class.java)) { cacheManager.registerCustomCache(spec.key.toString(), Caffeine.from(spec.value.toString()).build()) } }
Config with proper default (which is not posible with coffee-boots):
spring.cache.type=caffeine # default (optional) spring.cache.caffeine.spec=maximumSize=250,expireAfterWrite=15m # custom configs 0..N caffeine.specs.places=maximumSize=1000,expireAfterWrite=1h
No deps, no (additional) autoconfiguration magic.
@stepio what do you think - may it be proposed as little PR to Spring Boot?
Sorry, something went wrong.
No branches or pull requests
Try reducing amount of custom code by using newly introduced method
registerCustomCache
.Links:
The text was updated successfully, but these errors were encountered: