xml.DataEviction.xml Maven / Gradle / Ivy
<?xml version="1.0"?> <!DOCTYPE cache PUBLIC "-//GemStone Systems, Inc.//GemFire Declarative Caching 6.5//EN" "http://www.gemstone.com/dtd/cache6_5.dtd"> <!-- | DataEviction.xml | | Configures a region to destroy entries when the region reaches | a certain capacity. Includes a listener to report on the activity. --> <cache> <region name="exampleRegion"> <region-attributes> <cache-listener> <class-name>quickstart.SimpleCacheListener</class-name> </cache-listener> <eviction-attributes> <lru-entry-count maximum="10" /> <!-- entry destruction is the default eviction action --> </eviction-attributes> </region-attributes> </region> </cache>