| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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. |
| --> |
| |
| <!DOCTYPE cache PUBLIC |
| "-//GemStone Systems, Inc.//GemFire Declarative Caching 7.0//EN" |
| "http://www.gemstone.com/dtd/cache7_0.dtd"> |
| |
| <!-- This file contains a region created with a named attribute --> |
| |
| <cache> |
| <region-attributes id="id1" scope="global" statistics-enabled="true"> |
| <key-constraint>java.lang.String</key-constraint> |
| <value-constraint>java.lang.Integer</value-constraint> |
| <entry-idle-time> |
| <expiration-attributes timeout="45" action="invalidate"/> |
| </entry-idle-time> |
| </region-attributes> |
| <vm-root-region name="root"> |
| <region-attributes refid="id1"> |
| </region-attributes> |
| |
| <region name="subregion"> |
| <!-- Overrides an attributes --> |
| |
| <region-attributes refid="id1"> |
| <value-constraint>java.lang.Long</value-constraint> |
| <entry-idle-time> |
| <expiration-attributes timeout="90" action="destroy"/> |
| </entry-idle-time> |
| </region-attributes> |
| </region> |
| |
| <region name="subregion2"> |
| <!-- Makes sure that named region attributes can be registered |
| in a subregion declaration --> |
| |
| <region-attributes id="id2"> |
| <disk-write-attributes> |
| <synchronous-writes/> |
| </disk-write-attributes> |
| </region-attributes> |
| </region> |
| </vm-root-region> |
| </cache> |