DataNucleus
Access Platform
Persistence
DataNucleus Caching with SwarmCache

An overview of DataNucleus caching can be seen here. As mentioned above, DataNucleus provides a simple wrapper to SwarmCache'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=swarmcache
datanucleus.cache.level2.cacheName={cache name}

See also :-