Quarkus Cache (Caffeine): Allow setting refreshAfterWrite property
See original GitHub issueDescription
Currently, the Quarkus caffeine cache offers the following properties (see https://quarkus.io/guides/cache#quarkus-cache-config-group-cache-config-caffeine-config_configuration):
- initial capacity
- maximum size
- expire after write
- expire after access
- metrics enabled
Caffeine also offers setting ‘refresh after write’ (see https://github.com/ben-manes/caffeine/wiki/Refresh).
Implementation ideas
I did some research and the version of Caffeine (2.9.3) does support this already in the builder which is called from io.quarkus.cache.runtime.caffeine.CaffeineCacheImpl
so it should be fairly trivial to add this property. We need to add it to CaffeineCacheInfo
(I think).
Issue Analytics
- State:
- Created a year ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Application Data Caching - Quarkus
This extension uses Caffeine as its underlying caching provider. Caffeine is a high performance, near optimal caching library. Caffeine configuration properties.
Read more >Application Data Caching - Quarkus
This extension uses Caffeine as its underlying caching provider. Caffeine is a high performance, near optimal caching library. Caffeine configuration properties.
Read more >Quarkus Caffeine evict cache by pattern - Stack Overflow
I'm saving the cache for pages like this. Cache depends on username , pageNum , and pageSize . public class UsersLocationsWithUsernameKeyGen ...
Read more >Cache your application data - 《Quarkus v1.7 Guides》 - 书栈网
Quarkus - Application Data Caching ... Caffeine configuration properties ... Now that your Quarkus application is up and running, let's ...
Read more >Spring Boot With Caffeine Cache - Java Development Journal
Caffeine is a high performance Java 8 based caching library ... Let's see how to configure Caffeine cache using application.properties file:
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah no problem, I can try to make a PR, but might need some help, I’ll see if I can get it to work.
@davefranken-ah were you able to build the project?