Details
-
Enhancement
-
Resolution: Unresolved
-
Major
-
None
-
8.2.0.Final
-
None
Description
My use case is the following:
- I have some lenghty computation that I cache
- I don't want users to incur the wait before the computation is finished
One idea is:
- Upon expiration (or eviction), I'd like to put back the entry in the cache and start a thread to perform a recomputation (which would put the recomputed value in the cache)
- The issue is that the cache has a lock on the entry and thus I can't put it back in the cache.
Thus one solution is to be able to cancel the expiration/eviction events (and thus not have to put back the entry in the cache).
Of course I'm very open to hear if there are other solutions to this! Thanks a lot