Hi,
I am trying to use a custom java class as the object in memcached.
However I can set it but it never comes back out of it. in the custom
class all I have is 2 doubles and the class implements Serializable. I
setup memcached and do the following:
String mkey = "myKey";
boolean success = cachedClient.set(mkey,classIntance);
System.out.println("success = "+success);
MyClass instance = (MyClass)cachedClient.get(mkey);
However the instance I get back is null. My cache is working as if I
do this:
cachedClient.set( "foo", "This is a test String" );
String bar = (String)cachedClient.get( "foo" );
System.out.println("foo = "+bar);
It does the right thing. What am I missing?