Java Ehcache3 defaultCache配置等效项

Java Ehcache3 defaultCache配置等效项,java,ehcache-3,Java,Ehcache 3,在早期版本的Ehcache中,您可以定义默认缓存配置,该配置将应用于以编程方式创建的缓存。由于Ehcache3,他们对xsd的配置做了很多更改,似乎不再有与defaultCache等价的配置了——或者至少,我在任何地方都找不到它 例如,旧配置: <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd" updat

在早期版本的Ehcache中,您可以定义默认缓存配置,该配置将应用于以编程方式创建的缓存。由于Ehcache3,他们对xsd的配置做了很多更改,似乎不再有与defaultCache等价的配置了——或者至少,我在任何地方都找不到它

例如,旧配置:

<ehcache
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="ehcache.xsd"
    updateCheck="false">

    <defaultCache 
        maxElementsInMemory="10000" 
        eternal="false"
        timeToLiveSeconds="120"
        overflowToDisk="false" />
</ehcache>
<config
        xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
        xmlns='http://www.ehcache.org/v3'
        xsi:schemaLocation="
        http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core.xsd">

    <cache alias="default">
        <expiry>
            <ttl>120</ttl>
        </expiry>
        <heap>10000</heap>
    </cache>
</config>
所以问题是,Ehcache3中是否有defaultCache的等价物,或者我可以删除它吗

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.