ehcache 缓存失效时间配置基础问题?

本人需要配置系统中所有缓存失效时间为5分钟,配置如下:

 <?xml version="1.0" encoding="GB2312"?>
http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd">
<diskStore path="java.io.tmpdir"/>
<defaultCache 
maxElementsInMemory="500" 
eternal="false" 
timeToIdleSeconds="300" 
timeToLiveSeconds="300" 
overflowToDisk="true" /> 
</ehcache>

请问,上面这种配置有什么错误吗?因为,我这样配置之后,5分钟之后仍然可以访问缓存。

我将缓存配置具体到每一个缓存,5分钟之后,缓存就过期。

<?xml version="1.0" encoding="GB2312"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd">
    <diskStore path="java.io.tmpdir"/>

    <defaultCache 
      maxElementsInMemory="500" 
      eternal="false" 
      timeToIdleSeconds="3600" 
      timeToLiveSeconds="3600" 
      overflowToDisk="true" />   

         <cache name="HomeGuideCache" 
        maxElementsInMemory="10000" 
        eternal="false"
        overflowToDisk="false" 
        timeToIdleSeconds="3600" 
        timeToLiveSeconds="3600"
        memoryStoreEvictionPolicy="LFU" />

    <cache name="IHealthTypecache" 
        maxElementsInMemory="10000" 
        eternal="false"
        overflowToDisk="false" 
        timeToIdleSeconds="3600" 
        timeToLiveSeconds="3600"
        memoryStoreEvictionPolicy="LFU" />      
</ehcache>

看着是没问题的 会不会是数据过期之后 你访问又从新载了一次。