Signature is not correct.
<?php
$memcache = new Memcache();
$memcache->connect('localhost', 11211);
class Test { public $property = "testvalue"; }
$test = new Test();
$memcache->set("asdf", $test);
var_dump($memcache->get("asdf"));
/* will return the object, not the string:
class Test#3 (1) {
public $property =>
string(9) "testvalue"
}
*/
?>