08-07
28
Hibernate下各种Cache的缓存配置和特性
作者:Java伴侣 日期:2008-07-28
You have the option to tell Hibernate which caching implementation to use by specifying the name of a class that implements org.hibernate.cache.CacheProvider using the property hibernate.cache.provider_class.
我整理了下,具体看下面的表格
Cache | Provider class | Type | Cluster Safe | Query Cache Supported |
---|---|---|---|---|
Hashtable (not intended for production use) |
org.hibernate. cache.HashtableCacheProvider |
memory | yes | |
EHCache | org.hibernate. cache.EhCacheProvider |
memory, disk | yes | |
OSCache | org.hibernate. cache.OSCacheProvider |
memory, disk | yes | |
SwarmCache | org.hibernate. cache.SwarmCacheProvider |
clustered (ip multicast) | yes (clustered invalidation) | |
JBoss TreeCache | org.hibernate. cache.TreeCacheProvider |
clustered (ip multicast), transactional | yes (replication) | yes (clock sync req.) |
评论: 0 | 引用: 0 | 查看次数: 762
发表评论