ehcache.xml中的缓存是否从defaultCache继承?

如果我有以下配置:
<defaultCache timetoIdleSeconds="120"
        timetoLiveSeconds="120" />
<cache name="test"
        timetoLiveSeconds="300" />

timetoIdleSeconds的高速缓存测试值是多少?它将从认缓存继承,因此等于120,否则将取为手册中给出的认值,即0(无穷大)?

timetoIdleSeconds将是认值,而不是从“defaultCache”继承. “defaultCache”有点不正确/误导,在某种意义上说,它不为每个缓存提供“认值”,但它只是为可以动态添加的缓存指定配置的方式 – 使用cacheManager.addCache(String cacheName ).

http://www.ehcache.org/ehcache.xml起,该标签的文档读取

Default Cache configuration. 
These settings will be applied to caches created programmatically using
 CacheManager.add(String cacheName). This element is optional,and using
 CacheManager.add(String cacheName) when its not present will throw CacheException
 The defaultCache has an implicit name "default" which is a reserved cache name.

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念