问题
any example on using memcache/general cache with jpa entitymanager on JGAE? or the only way to do it is manually put/set memcache on service layer?
回答1:
DataNucleus docs define adequately how to use the JDO/JPA L2 cache. http://www.datanucleus.org/products/accessplatform_1_1/jpa/cache.html in the case of GAE/J memcache the L2 cache should be "javax.cache".
来源:https://stackoverflow.com/questions/1978428/example-using-memcache-with-jpa-entitymanager-on-jgae