Question

How to set dirty flag for an only few entity in coherence cache. So, cache will load it back in the background or after sometime.

Was it helpful?

Solution

You can't arbitrarily have the cache refresh a sub-set of entities.

The only thing that comes close to what you describe is refresh-ahead caching, which will refresh entries before they expire if they are being accessed. If not they will expire and be reloaded on the next get.

If this doesn't meet your needs you'll need to have another process perform the updates for you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top