How do I check in PHP if a value is stored in Memcache without fetching it? I don\'t like fetching it because the values I have set are all 1MB in size and after I fetch it, I h
I wonder why Memcached has no special method for it. Here is what I came down to after some considerations:
function has($key) { $m->get($key) return \Memcached::RES_NOTFOUND !== $m->getResultCode(); }