google app engine - Memcache not saving entity list on Java AppEngine -


i want save list of entity kind memcache. entity using objectify annotation. save list memcache do

memcacheservice synccache = memcacheservicefactory.getmemcacheservice("food"); synccache.seterrorhandler(errorhandlers.getconsistentlogandcontinue(level.info)); synccache.put("foods",foodlist);//foodlist = arraylist of objectify entity synccache.put("timesaved",new datetime()); 

i keep getting error saying entity not serializable

java.io.notserializableexception:'com.company.data.food' 

any ideas how might work? foodlist result of query. want save result of query memcache.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -