JAVA開発メモ
EHCache の変更点
 

[リロード]   [新規|編集|差分|添付]   [トップ|一覧|単語検索|最終更新|バックアップ|ヘルプ]

サイトメニュー

  • 追加された行はこの色です。
  • 削除された行はこの色です。
  • EHCache へ行く。

  #contents
  
  *NEWS
  --Added SelfPopulatingCacheManager to the constructs package.
  --Added a new diskExpiryThreadIntervalSeconds configuration option to ehcache.xml, to allow tuning of the expiry thread per cache. 
  --Added a new persistent option for the DiskStore. When enabled, diskPersistent makes Caches persistent between JVM restarts. It enables very long held caches to be configured, useful for very expensive and/or long lived cache entries. 
  --Improved code coverage. See clover coverage report. 
  --New checkstyle rules, using checkstyle 3.4. Many additional checks have been added and code cleanups done to make ehcache more standards compliant and understandable than ever.
  --Minimum Java version 1.5
  --minimise dependencies for core users: drop commons logging, commons collections and backport concurrent (already done in trunk and snapshot)
  --add a JMS distributed cache replicator
  --add RESTful ehcache server as secondary store, leveraging the new ehcache-server, and using partitioning (memcached feature)
  --introduce new performance strategies and secondary store categories to allow greater optimisation. The goal is to make ehcache faster than java.util.concurrent for in-process caching and as scalable as memcached for out-of-process caching.
  --group invalidation (OSCACHE feature)
  --add other oustanding feature requests
  
  
   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(String name, int maximumSize, boolean overflowToDisk,
   //  boolean eternal, long timeToLiveSeconds, long timeToIdleSeconds,
   //  boolean diskPersistent, long diskExpiryThreadIntervalSeconds)
   Cache testCache = new Cache("test", 1000, true, false, 500, 200, false, 120);
   manager.addCache(cache);
   cache.removeAll();
  
   Element element = new Element("key1", "value1");
   cache.put(element);
   Element element = cache.get("key1");
   cache.remove("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>


リロード   新規 編集 差分   トップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS
Last-modified: Wed, 03 Sep 2008 03:27:33 UTC (5687d)
Link: FrontPage(3201d)

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.036 sec.