Does Ehcache 2.1 support the transactional cache concurrency strategy in Hibernate 3.3.2GA?

ε祈祈猫儿з 提交于 2020-01-13 03:15:07

问题


Does Ehcache 2.1 now support the transactional cache concurrency strategy in Hibernate 3.3.2GA? That is, does Hibernate, when configured to use Ehcache 2.1 as its cache provider, allow the <cache usage="transactional"/> element in a mapping file or the Hibernate entity class annotation @Cache(usage=CacheConcurrencyStrategy.READ_WRITE)?


回答1:


According to the Ehcache Home Page page, Ehcache 2.1+ does now support all Hibernate strategies:

17 May 2010: Ehcache 2.1.0 and new ehcache-nonstopcache and

ehcache-unlockedreadsview released

Ehcache 2.1.0 rounds out Ehcache 2.0. JTA support has been added for standalone ehcache. JTA for Hibernate has been added which now means Ehcache supports all Hibernate strategies. ehcache-nonstopcache adds a new API with support for timeouts on Cache Operations and configurable actions on disconnection from a cluster. ehcache-unlockedreadsview adds support for a coherent cache to expose an unlocked view at the same time, for rapid response.

See also

  • Ehcache 2.1 Beta - Lots of Stuff, Still Backward Compatible


来源:https://stackoverflow.com/questions/3472613/does-ehcache-2-1-support-the-transactional-cache-concurrency-strategy-in-hiberna

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!