On Feb 24, 2008, at 14:48, William Chu wrote:

I think you are correct ... I can set a "String" but not any other object.

        None?  What other kinds of objects did you try?

Why?

boolean isSet  = mc.set(key, "Some String");

isSet = true and thus everything works correctly.


I need to be able to cache any object....What is going wrong? Why is my client failing?


client implies there's a server. client <-> server communication requires the two to agree on how to represent data being passed around. Java does that using its serialization mechanism.

If you don't have any kind of external encoding for a particular object, it can't be sent to the server.

It may be that you just want your object to implement Serializable, but it's not always that simple.

--
Dustin Sallings



Reply via email to