示例:
Query departQuery = pm.newQuery(Department.class);
List <Department> departList = List<Department>) departQuery.execute();
我可以知道如何将departList(List)添加到memcache中。
答案 0 :(得分:0)
您可以将JCache用于App Engine。使用子类(例如List
)而不是ArrayList
,departList
为Serializable
,然后您可以:
cache.put(yourkey, departList)