🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 19.2.5\. 策略:事务缓存(transactional) Hibernate的`事务缓存`策略提供了全事务的缓存支持, 例如对JBoss TreeCache的支持。这样的缓存只能用于JTA环境中,你必须指定 为其`hibernate.transaction.manager_lookup_class`属性。 没有一种缓存提供商能够支持上列的所有缓存并发策略。下表中列出了各种提供器、及其各自适用的并发策略。 **表 19.2\. 各种缓存提供商对缓存并发策略的支持情况(Cache Concurrency Strategy Support)** | Cache | read-only | nonstrict-read-write | read-write | transactional | | --- | --- | --- | --- | --- | | Hashtable (not intended for production use) | yes | yes | yes | | EHCache | yes | yes | yes | | OSCache | yes | yes | yes | | SwarmCache | yes | yes | | JBoss TreeCache | yes | yes |