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)
- It is fast.
- lightweight.
- Easy-to-use.
- Supports read-only and read/write caching.
- Supports memory-based and disk-based caching.
- Does not support clustering.
OSCache (Open Symphony Cache)
(org.hibernate.cache.OSCacheProvider)
- It is a powerful .
- flexible package
- supports read-only and read/write caching.
- Supports memory- based and disk-based caching.
- Provides basic support for clustering via either JavaGroups or JMS.
SwarmCache (org.hibernate.cache.SwarmCacheProvider)
- is a cluster-based caching.
- supports read-only or nonstrict read/write caching .
- appropriate for applications those have more read operations than write operations.
JBoss TreeCache (org.hibernate.cache.TreeCacheProvider)
- is a powerful replicated and transactional cache.
- useful when we need a true transaction-capable caching architecture .
Cache providers.
Cache |
Provider class |
Type |
Cluster Safe |
Query Cache Supported |
Hashtable (not intended for production use) |
|
memory |
yes | |
EHCache |
|
memory, disk |
yes | |
OSCache |
|
memory, disk |
yes | |
SwarmCache |
|
clustered (ip multicast) |
yes (clustered invalidation) |
yes (clock sync req.) |
JBoss Cache 1.x |
|
clustered (ip multicast), transactional |
yes (replication) |
yes (clock sync req.) |
JBoss Cache 2 |
|
clustered (ip multicast), transactional |
yes (replication or invalidation) |
yes (clock sync req.) |
Cache Concurrency Strategy Support
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 |
Please add JvCache to the above mentioned list of Hibernate cache providers. JvCache is an in-memory data grid for Java applications. It also has JvCache Express that is totally free to use. Get more details about it at http://www.alachisoft.com/jvcache/.
Can any one help me which hibernate second level cache will give best performance…?
hazelcast,gemfire,ehcache,swarm cachem jboss cache,memcache,cacheonix.