More Related Content
Similar to Hibernate Cache (20)
More from Yenwen Feng (15)
Hibernate Cache
- 4. cache level (2/2) cluster transaction application transaction application transaction transaction
- 6. Cache providers Cache Cluster Safe Query Cache Hashtable yes EHcache yes OScache yes Swarmcache yes JBosscache yes yes
- 8. cache concurrency strategy support cache read-only nonstrict-read-write read-write transactional hashtable yes yes yes EHCache yes yes yes OSCache yes yes yes SwarmCache yes yes JBoss yes yes
- 11. session.load step in session? session.get Yes session No in session factory? DataBase No session factory Yes
- 12. collection cache setting <hibernate mapping> <class name=“User”> ……… . <set name=“addresses” table=“t_addresses” …… > <cache usage=“read-only”> User.hbm.xml
- 15. set ehcache.xml <defaultCache maxElementsInMemory="10000" eternal="false" timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="false" />