Open veysiertekin opened 3 years ago
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.
+1
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!