<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (C) 2015 Baidu, Inc. All Rights Reserved.
  -->
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="true"
         monitoring="autodetect" dynamicConfig="true">

    <diskStore path="${cache_directory}"/>

    <defaultCache maxElementsInMemory="10000" eternal="false"
                  timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="false"
                  maxElementsOnDisk="10000000" diskPersistent="false"
                  diskExpiryThreadIntervalSeconds="120" memoryStoreEvictionPolicy="LRU"/>

    <cache name="${cache_name}" maxElementsInMemory="10000"
           maxElementsOnDisk="10000000" eternal="false" overflowToDisk="false"
           diskSpoolBufferSizeMB="50"/>

    <cache name="${role_res_cache_name}" maxElementsInMemory="10000"
           maxElementsOnDisk="10000000" eternal="false" overflowToDisk="false"
           diskSpoolBufferSizeMB="50"/>

</ehcache>