DataNucleus
Access Platform
Persistence
DataNucleus Caching with OSCache

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

See also :-