读书人

Hibernate-一级缓存/二级缓存/查询缓存

发布时间: 2012-11-10 10:48:50 作者: rapoo

Hibernate-------一级缓存/二级缓存/查询缓存

例子:

model:

?

?

?

?

?

?

?缓存策略提供商(Cache Providers)

CacheProvider classTypeCluster SafeQuery Cache SupportedHashtable (not intended for production use)org.hibernate.cache.HashtableCacheProvidermemory?yesEHCacheorg.hibernate.cache.EhCacheProvidermemory, disk?yesOSCacheorg.hibernate.cache.OSCacheProvidermemory, disk?yesSwarmCacheorg.hibernate.cache.SwarmCacheProviderclustered (ip multicast)yes (clustered invalidation)?JBoss Cache 1.xorg.hibernate.cache.TreeCacheProviderclustered (ip multicast), transactionalyes (replication)yes (clock sync req.)JBoss Cache 2org.hibernate.cache.jbc2.JBossCacheRegionFactoryclustered (ip multicast), transactionalyes (replication or invalidation)yes (clock sync req.)

读书人网 >软件架构设计

热点推荐