All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gemstone.gemfire.cache.doc-files.example3-cache.xml Maven / Gradle / Ivy

There is a newer version: 2.0-BETA
Show newest version
<?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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy