Problem with cache (GAE)
Asked by
ABBAnatic
I'm with GAE trying to cache a list of entities like this:
List<Post> list;
list = Cache.get(
if(list == null) {
JPAQuery lQ = Post.findBetwee
list = lQ.all(); // TODO cache this
}
Where Post extends JPASupport.
I'm getting this error on the line "Cache.
Cache error
Cannot cache a non-serializable value of type org.datanucleus
What's the problem?
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Guillaume Bort
- Solved:
- Last query:
- Last reply:
To post a message you must log in.