what happen with my memcache (and php), please help

Tsz Ming WONG tszming at gmail.com
Fri Mar 9 03:32:20 UTC 2007


Hello,



> In both cases, I only get 'This key is NOT set'.

what you can find in the memcached via getStats() after you run your program?
such as total_items, get_hits, get_misses etc


> I donot know why. I think that my code is very clear.

did your $key contains a space?

e.g.

$key = "this is a test";
$memcache->set($key, 1);


echo $memcache->get($key); // print out "1", as expected
echo $key;                          // print out "this_is_a_test"




regards,
tszming


More information about the memcached mailing list