I understand that expiry policy applies to off heap cache along with the persistent durable storage. Is there a way to apply different expiry policy to cache and disk? I need to retain the data on disk a lot longer than I can afford in cache.
Expiry policies are designed to set the lifetime of an entry.
If you configure your data region to have a small max size, and load more
data than the max size of the data region, then most of your entries will be
kept in persistent storage.
After configuring your data region, set your expiry policy to be as needed,
and your entries will be deleted when necessary.