[
トップ|
一覧|
単語検索|
最終更新|
バックアップ|
ヘルプ]
CacheManager manager = CacheManager.getInstance();
URL url = getClass().getResource("/package/anothername.xml");
CacheManager manager = CacheManager.create(url);
CacheManager manager = CacheManager.create("src/config/ehcache.xml");
manager.shutdown();
Cache cache = manager.getCache("sampleCache1");
Cache cache = new Cache("test", 1, true, false, 5, 2);
manager.addCache(cache);
Element element = new Element("key1", "value1");
cache.put(element);
Element element = cache.get("key1");
<ehcache>
<diskStore path="java.io.tmpdir"/>
<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="true"
/>
<cache name="my.package.Class"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="300"
timeToLiveSeconds="600"
overflowToDisk="true"
/>
</ehcache>
Modified by MT22(Moriwaki Takashi)
"PukiWiki" 1.3.7 Copyright © 2001,2002,2003 PukiWiki Developers Team. License is GNU/GPL.
Based on "PukiWiki" 1.3 by sng
Powered by PHP 7.4.33
HTML convert time to 0.008 sec.