I want to refresh cache entries in Map, 2 minutes before they reach TTL timestamp.
so that I can always have data ready in cache, as making call to persistence upon TTL gives inconsistent experience to users as latency will be high for some calls.
Is there anyway I can achieve this without maintaining another MAP and handling it manually.
The listeners seem only get events after the cache entry TTL met or evicted.
Appreciate quick input on this.