com.gemstone.gemfire.cache.doc-files.example3-cache.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gemfire-core Show documentation
Show all versions of gemfire-core Show documentation
SnappyData store based off Pivotal GemFireXD
<?xml version="1.0" encoding="UTF-8"?> <!-- A sample GemFire declarative caching XML File that demonstrates the "named region attributes" feature. --> <!DOCTYPE cache PUBLIC "-//GemStone Systems, Inc.//GemFire Declarative Cache 7.5//EN" "http://www.gemstone.com/dtd/cache7_5.dtd"> <cache> <region-attributes id="template" statistics-enabled="true" scope="distributed-ack"> <key-constraint>java.lang.String</key-constraint> <value-constraint>com.company.app.Customer</value-constraint> <entry-idle-time> <expiration-attributes timeout="60"/> </entry-idle-time> </region-attributes> <!-- define a named region-attributes that uses the predefined REPLICATE --> <region-attributes id="distributed" refid="REPLICATE"> <cache-loader> <class-name>com.company.app.DBLoader</class-name> </cache-loader> </region-attributes> <region-attributes id="persistent" refid="distributed" data-policy="persistent-replicate"> <eviction-attributes> <lru-entry-count maximum="1000" action="overflow-to-disk"/> </eviction-attributes> </region-attributes> <region name="customers" refid="template"/> <region name="customers-west" refid="template"/> <region name="customers-central" refid="template"/> <region name="customers-east" refid="template"/> <region name="orders" refid="template"/> <region name="orders-west" refid="persistent"/> <region name="orders-central" refid="persistent"/> <region name="orders-east" refid="persistent"/> </cache>