cb372/scalacache

Refresh after write support

veysiertekin opened this issue · 2 comments

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!

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 commented

+1