![JAR search and dependency download from the Maven repository](/logo.png)
com.gemstone.gemfire.cache.doc-files.example-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 --> <!DOCTYPE cache PUBLIC "-//GemStone Systems, Inc.//GemFire Declarative Cache 7.5//EN" "http://www.gemstone.com/dtd/cache7_5.dtd"> <cache search-timeout="60" lock-lease="300" copy-on-read="false"> <!-- Create a partition region --> <region name="myPartitionedRegion" refid="PARTITION"> <region-attributes> <partition-attributes local-max-memory="32"/> <cache-loader> <class-name>com.company.app.DBLoader</class-name> </cache-loader> <eviction-attributes> <lru-entry-count maximum="1000" action="local-destroy"/> </eviction-attributes> </region-attributes> </region> <!-- Create a replicate region --> <region name="customers" refid="REPLICATE"> <region-attributes> <entry-time-to-live> <expiration-attributes action="destroy" timeout="3000"/> </entry-time-to-live> <entry-idle-time> <expiration-attributes timeout="600"/> </entry-idle-time> <cache-loader> <class-name>com.company.app.DBLoader</class-name> <parameter name="URL"> <string>jdbc://12.34.56.78/mydb</string> </parameter> </cache-loader> <eviction-attributes> <lru-memory-size maximum="1000" action="overflow-to-disk"> <class-name>com.company.data.MySizer</class-name> <parameter name="name"> <string>SuperSizer</string> </parameter> </lru-memory-size> </eviction-attributes> </region-attributes> <!-- Add an entry whose value is a Declarable object --> <entry> <key><string>Louise Jones</string></key> <value> <declarable> <class-name>com.company.app.Customer</class-name> <parameter name="name"> <string>Louise Jones</string> </parameter> <parameter name="address1"> <string>123 Main Street</string> </parameter> <parameter name="city"> <string>New York</string> </parameter> <parameter name="state"> <string>NY</string> </parameter> <parameter name="zip"> <string>12345</string> </parameter> </declarable> </value> </entry> </region> </cache>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy