Configure Data Expiration

Configure the type of expiration and the expiration action to use.

Set the region’s statistics-enabled attribute to true.

The statistics used for expiration are available directly to the application through the CacheStatistics object returned by the Region and Region.EntrygetStatistics methods. The CacheStatistics object also provides a method for resetting the statistics counters.

Set the expiration attributes by expiration type, with the max times and expiration actions. See the region attributes listings for entry-time-to-live, entry-idle-time, region-time-to-live, and region-idle-time in <region-attributes>.

For partitioned regions, to ensure reliable read behavior, use the time-to-live attributes, not the idle-time attributes. In addition, you cannot use local-destroy or local-invalidate expiration actions in partitioned regions.