Skip to content
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

Refresh after write support #568

Open
veysiertekin opened this issue Aug 19, 2021 · 2 comments
Open

Refresh after write support #568

veysiertekin opened this issue Aug 19, 2021 · 2 comments

Comments

@veysiertekin
Copy link

Current scalacache default implementation allows us to cache values for a desired duration (TTL).
In some cases, we may need to refresh value in parallel without expiring it, just like Guava/Caffeine's refreshAfterWrite behaviour.

Maybe this involve adding another mode kind of behaviour for caching strategies. Hope sometime we will see this feature in scalacache!

@jeet23
Copy link

jeet23 commented Jan 21, 2022

Plus 1 for this feature request.

It would be great to have the refreshAfterWrite feature added in scalacache (like Caffeine, Guava etc), so that we can use the CacheLoader to refresh the cache values without ever expiring it.

@niij
Copy link

niij commented May 6, 2022

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants