daily pastebin goal
28%
SHARE
TWEET

Fernando Takai

a guest Aug 25th, 2008 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0"?>
  2.  
  3. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  4. <!--                                                                       -->
  5. <!--              Coherence Hibernate CacheProvider:                       -->
  6. <!--                  Cache Configuration Descriptor                       -->
  7. <!--                                                                       -->
  8. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  9.  
  10. <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
  11.  
  12. <cache-config>
  13.   <caching-scheme-mapping>
  14.  
  15.     <cache-mapping>
  16.       <!--
  17.      Query cache configuration.
  18.      -->
  19.       <cache-name>org.hibernate.cache.*</cache-name>
  20.       <scheme-name>hibernate-replicated</scheme-name>
  21.       <init-params>
  22.         <init-param>
  23.           <param-name>size-limit</param-name>
  24.           <param-value>100</param-value>
  25.         </init-param>
  26.       </init-params>
  27.     </cache-mapping>
  28.  
  29.     <cache-mapping>
  30.       <!--
  31.      Entity cache configuration.
  32.      -->
  33.       <cache-name>*</cache-name>
  34.       <scheme-name>hibernate-replicated</scheme-name>
  35.       <init-params>
  36.         <init-param>
  37.           <param-name>size-limit</param-name>
  38.           <param-value>1000</param-value>
  39.         </init-param>
  40.       </init-params>
  41.     </cache-mapping>
  42.   </caching-scheme-mapping>
  43.  
  44.   <caching-schemes>
  45.  
  46.     <replicated-scheme>
  47.       <!--
  48.      Size-limited replicated caching scheme.
  49.      -->
  50.       <scheme-name>hibernate-replicated</scheme-name>
  51.       <service-name>HibernateReplicatedCache</service-name>
  52.  
  53.       <backing-map-scheme>
  54.         <local-scheme>
  55.           <high-units>{size-limit 0}</high-units>
  56.         </local-scheme>
  57.       </backing-map-scheme>
  58.  
  59.       <autostart>true</autostart>
  60.     </replicated-scheme>
  61.   </caching-schemes>
  62. </cache-config>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top