anchor.diff:  
   [source, XML]
   ----
  -<namedCache name="User">
  -  <eviction strategy="LIRS" maxEntries="2000" />
  -  <loaders passivation="true" shared="false">
  -    <singleFile location="/var/infinispan/myapp/users" />
  -  </loaders>
  -</namedCache>
  -----
  -
  -====
  -
  -In this example we enabled both +eviction+ and a +CacheStore+ (the +loader+ element).
  +<local-cache name="User">
  +    <transaction mode="NON_DURABLE_XA"
  +                 transaction-manager-lookup="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup"/>
  +    <eviction strategy="LIRS" max-entries="2000"/>
  +    <persistence passivation="true">
  +        <file-store
  +           shared="false"
  +           path="/var/infinispan/myapp/users"
  +            <write-behind flush-lock-timeout="15000" thread-pool-size="5" />
  +        </file-store>
  +    </persistence>
  +</local-cache>
  +----
  +
  +====
  +
  +In this example we enabled both +eviction+ and a +CacheStore+ (the +persistence+ element).
   +LIRS+ is one of the choices we have for eviction strategies.
   Here it is configured to keep (approximately) 2000 entries in live memory
   and evict the remaining as a memory usage control strategy.
  
positive.code: <?xml version="1.0" encoding="UTF-8"?>
  <infinispan
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="urn:infinispan:config:6.0 http://www.infinispan.org/schemas/infinispan-config-6.0.xsd"
      xmlns="urn:infinispan:config:6.0">
  
      <global>
          <transport
              clusterName="HibernateOGM-Infinispan-cluster">
              <properties>
                  <property name="configurationFile" value="my-jgroups-conf.xml" />
              </properties>
          </transport>
      </global>
  
      <default>
          <clustering
              mode="distribution" />
      </default>
  
      <namedCache name="User">
          <!-- Override the cache mode: -->
          <clustering mode="replication" />
      </namedCache>
  
      <namedCache
          name="Order">
      </namedCache>
  
      <namedCache name="associations_User_Order">
      </namedCache>
  
  </infinispan>
  ----
  
negative.code: <?xml version="1.0" encoding="UTF-8"?>
  <infinispan
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="urn:infinispan:config:7.0 http://www.infinispan.org/schemas/infinispan-config-7.0.xsd"
      xmlns="urn:infinispan:config:7.0">
  
      <cache-container name="HibernateOGM" default-cache="DEFAULT">
  
          <!-- *************************** -->
          <!--   Default cache settings    -->
          <!-- *************************** -->
          <local-cache name="DEFAULT">
              <transaction mode="NON_DURABLE_XA"
                           transaction-manager-lookup="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup"/>
          </local-cache>
  
          <local-cache name="User"/>
  
          <local-cache name="Order"/>
  
          <local-cache name="associations_User_Order"/>
  
      </cache-container>
  </infinispan>
  ----
  ====
  
  There are global settings that can be set before the +cache_container+ section.
  These settings will affect the whole instance;
  mainly of interest for Hibernate OGM users is the +jgroups+ element
  in which we will set JGroups configuration overrides.
  
  Inside the +cache-container+ section are defined explicit named caches and their configurations
  as well as the default cache (named +DEFAULT+ here) if we want to affect all named caches.
  This is where we will likely want to configure clustering modes, eviction policies and ++CacheStore++s.
  
  [[ogm-infinispan-storage]]
  
  