|
An overview of DataNucleus caching can be seen here.
As mentioned earlier, DataNucleus provides a simple wrapper to
EHCache's caches. To enable this
you should set the following properties as input to the PersistenceManagerFactory/EntityManagerFactory
datanucleus.cache.level2=true
datanucleus.cache.level2.type=ehcache
datanucleus.cache.level2.cacheName={cache name}
datanucleus.cache.level2.configurationFile={EHCache configuration file resource path (must be in classpath)}
The EHCache plugin also provides an alternatvie L2 Cache that is class-based. To use this you would
need to replace "ehcache" above with "ehcacheclassbased".
See also :-
|
|