question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quarkus Cache (Caffeine): Allow setting refreshAfterWrite property

See original GitHub issue

Description

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:open
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
davefranken-ahcommented, Jun 2, 2022

@davefranken-ah would you be willing to contribute this?

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.

0reactions
geoandcommented, Jul 15, 2022

@davefranken-ah were you able to build the project?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found