-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotSerializableException #15
Comments
You can only store things that are serializable and something you are trying to store is not. |
so lets say I have a case class. How do I make that serializable? When I try to cache an instance of my case class Product below I get an error. case class Product(id: Int, title: Option[String], desc: Option[String], image: Option[String]) |
You can try Here's what I have tested: |
Then I must implement some Java interface? I dont like that solution :) |
Hi, How about using MessagePack to serialize any object to bytes, then putting it in memcached? I have read that Pinterest uses MessagePack and memcached this way :) |
Unfortunately @Cached(key = "homePage")
public static Result index() {
return ok("Hello world");
} Stack:
|
Any news on this one ? |
This link helped me as a sample: https://gist.github.com/ramn/5566596
|
If you want to cache a |
Hi, i try to use Memcache to store a ebean model object.
I save the object but i have this exception:
"java.io.NotSerializableException: play.libs.F$Tuple"
Any ideas? Thanks
The text was updated successfully, but these errors were encountered: