ehcache.xml 1.51 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1 2
<?xml version="1.0" encoding="UTF-8"?>
<!--
Matija Obreza's avatar
Matija Obreza committed
3 4 5 6 7 8 9 10 11 12 13 14 15
  Copyright 2014 Global Crop Diversity Trust
  
  Licensed 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.
Matija Obreza's avatar
Matija Obreza committed
16
-->
Matija Obreza's avatar
Matija Obreza committed
17

18 19 20 21 22 23
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd">

	<!--Default cache settings -->
	<defaultCache maxElementsInMemory="10000" eternal="false" timeToIdleSeconds="1800" timeToLiveSeconds="3600" overflowToDisk="false" />

	<!--ACL in-memory cache -->
Matija Obreza's avatar
Matija Obreza committed
24 25
	<cache name="statistics" maxElementsInMemory="100" eternal="false" timeToIdleSeconds="60" timeToLiveSeconds="120" overflowToDisk="false" />
	<cache name="contentcache" maxElementsInMemory="1000" eternal="false" timeToIdleSeconds="60" timeToLiveSeconds="120" overflowToDisk="false" />
26 27 28 29 30 31 32 33

	<!--CACHEABLE CACHES -->

	<!--ACL in-memory cache -->
	<cache name="acl" maxElementsInMemory="10000" eternal="false" timeToIdleSeconds="1800" timeToLiveSeconds="3600" overflowToDisk="false" />

	<!--HIBERNATE L2 CACHES -->
	<!--Here are specific caches for all persistence models -->
Matija Obreza's avatar
Matija Obreza committed
34 35

</ehcache>