Related Documentation : Integrations : Using Ehcache with Hibernate : Configuring ehcache.xml Settings
Configuring ehcache.xml Settings
 
Ehcache Settings for Domain Objects
Ehcache Settings for Collections
Ehcache Settings for Queries
Because the ehcache.xml file has a defaultCache, caches will always be created when required by Hibernate. However you can gain more control over Hibernate caches by configuring each cache based on its name. Doing this is particularly important, because Hibernate caches are populated from databases, and there is potential for them to become very large. You can control the size of a Hibernate cache by capping its maxEntriesLocalHeap property and specifying whether to swap to disk beyond that.
Copyright © 2010-2015 Software AG, Darmstadt, Germany.

Product Logo |   Feedback