This attribute sets the maximum number of entries to hold in a caching region. When the capacity of the caching region is exceeded, a least-recently-used (LRU) algorithm is used to evict entries.
When eviction is configured, memory consumption or entry count is monitored and, when capacity is reached, GemFire makes way for new entries by removing or overflowing the stalest LRU entries to disk.
If you use disk data overflow to supplement memory for your data cache, make sure you have enough disk space to store the data.
This declaration limits the region to 20,000 entries:
<region-attributes lru-entries-limit="20000" initial-capacity="20000" load-factor="1"> </region-attributes>
Evicted entries can be destroyed or moved to disk as an extension of the cache. See DiskPolicy.
See also Controlling Cache Size.