Refresh after write support
veysiertekin opened this issue · 2 comments
veysiertekin commented
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 commented
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