to enable it you've gotta
- download the cache plugin here
- place it in your applications lib directory
- edit your persistence.xml and add
<property name="datanucleus.cache.level2" value="true">
<property name="datanucleus.cache.level2.type" value="soft">
after
<property name="datanucleus.ConnectionURL" value="appengine"/>
Additional configuration options are available here.
App engines memcache implements JCache(javax.cache) interface, but i get a serialization error when attempting to save a object.
App engines memcache implements JCache(javax.cache) interface, but i get a serialization error when attempting to save a object.
do you managed to get memcache work by seetting level2 property? i cant get it run when set value to memcache. are u using jpa?
ReplyDeleteI tried "javax.cache" and when I make my entity classes Serializable, it seems to work.
ReplyDeleteAre you sure the "soft" cache works properly, as it does not support distributed caches and GAE will cluster across many JVM?