-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
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
Caffeine configuration - Allow global default configuration #27023
Comments
/cc @gwenneg |
@gwenneg this sounds reasonable to me. WDYT? |
I like this global default config idea. It is totally reasonable and a great enhancement.
@renzodf I'm not sure I understood what you meant here. Would |
Allow global default cache configuration
@gwenneg Thanks for the dev :) |
You're welcome! |
It was added in Quarkus 3 |
Oh, is there any chance to backport it? :) |
Probably not since we don't plan to maintain 2.16 indefinitely |
Description
Hello,
Currently, "By default, caches do not perform any type of eviction if not configured." and the configuration is done trough a set of configuration variables (quarkus.cache.caffeine."cache-name".*). This requires a configuration per cache, which can be extensive if the number of cache is high.
It would be nice to introduce default configuration keys to allow the configuration of all caches in few lines:
Note: initial-capacity and maximum-size would configure each cache individually -> will not act as global limits.
Cheers,
Renzo
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: