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.)