Orange Slate

List of Cache Providers in Hibernate and their Concurrency Support details

Advertisements

Here in this port you can find the list of Cache providers and their Concurrency support details. (Exerted from Official Hibernate Tutorial)

EHCache (Easy Hibernate Cache)
(org.hibernate.cache.EhCacheProvider)
OSCache (Open Symphony Cache)
(org.hibernate.cache.OSCacheProvider)
SwarmCache (org.hibernate.cache.SwarmCacheProvider)
JBoss TreeCache (org.hibernate.cache.TreeCacheProvider)

Cache providers.

Cache

Provider class

Type

Cluster Safe

Query Cache Supported

Hashtable (not intended for production use)

org.hibernate.cache.

HashtableCache

Provider

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)

yes (clock sync req.)

JBoss Cache 1.x

org.hibernate.cache.

TreeCacheProvider

clustered (ip multicast), transactional

yes (replication)

yes (clock sync req.)

JBoss Cache 2

org.hibernate.cache.

jbc2.JBossCache

RegionFactory

clustered (ip multicast), transactional

yes (replication or invalidation)

yes (clock sync req.)

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 Cache 1.x

yes

   

yes

JBoss Cache 2

yes

   

yes

Advertisements