---
title: "&lt;cache&gt; Element Hierarchy"
---

<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.  See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

This section shows the hierarchy of `<cache>` element sub-elements that you use to configure <%=vars.product_name%> caches and servers.

For details, see [&lt;cache&gt; Element Reference](cache_xml.html#cache_xml_cache).

``` pre
<cache>
   <cache-transaction-manager>
      <transaction-listeners>
      <transaction-writer>
   <gateway-hub>
      <gateway>
         <gateway-endpoint>
         <gateway-listener>
         <gateway-queue>
   <gateway-sender>
      <gateway-event-filter>
      <gateway-transport-filter>
   <gateway-receiver>
      <gateway-transport-filter>
   <gateway-conflict-resolver>
      <async-event-queue>
      <async-event-listener>
         <class-name>
         <parameter>
            <string>
            <declarable>
   <cache-server>
      <group>
      <client-subscription>
      <custom-load-probe>
          <class-name>
          <parameter>
             <string>
             <declarable>
   <pool>
      <locator>
      <server>
   <disk-store>
      <disk-dirs>
         <disk-dir>
   <pdx>
      <pdx-serializer>
         <class-name>
         <parameter>
            <string>
            <declarable>
   <region-attributes>
      <key-constraint>
      <value-constraint>
      <region-time-to-live>
         <expiration-attributes>
            <custom-expiry>
               <class-name>
               <parameter>
                  <string>
                  <declarable>
      <region-idle-time>
         <expiration-attributes>
            <custom-expiry>
               <class-name>
               <parameter>
                  <string>
                  <declarable>
      <entry-time-to-live>
         <expiration-attributes>
            <custom-expiry>
               <class-name>
               <parameter>
                  <string>
                  <declarable>
      <entry-idle-time>
         <expiration-attributes>
            <custom-expiry>
               <class-name>
               <parameter>
                  <string>
                  <declarable>    
      <partition-attributes>
         <partition-resolver>
            <class-name>
               <parameter>
                  <string>
                  <declarable>
         <partition-listener>
            <class-name>
               <parameter>
                  <string>
                  <declarable>
         <fixed-partition=attributes>
      <membership-attributes>
         <required-role>
      <subscription-attributes>
         <cache-loader>
            <class-name>
            <parameter>
               <string>
               <declarable>
         <cache-writer>
            <class-name>
            <parameter>
               <string>
               <declarable>          
         <cache-listener>
            <class-name>
            <parameter>
               <string>
               <declarable>
      <compressor>        
         <class-name>
         <parameter>
            <string>
            <declarable>
      <eviction-attributes>
         <lru-entry-count>
         <lru-heap-percentage>
            <class-name>
               <parameter>
                  <string>
                  <declarable>
         <lru-memory-size>
            <class-name>
               <parameter>
                  <string>
                  <declarable>
   <jndi-bindings>
      <jndi-binding>
         <config-property>
            <config-property-name>
            <config-property-type>
            <config-property-value>
   <region>
      <region-attributes>
      <index>
      <lucene:index>
         <field>
      <entry>
         <key>
            <string>
            <declarable>
         <value>
            <string>
            <declarable>
   <vm-root-region>
   <function-service>
      <function>
         <class-name>
         <parameter>
            <string>
            <declarable>
   <resource-manager>
   <serialization-registration>
      <serializer>
         <class-name>
            <instantiator>
         <class-name>
            <backup>
   <initializer><initializer>
      <class-name>
      <parameter>
         <string>
         <declarable>
</cache>
   
```


