The Memcached extension supports at least 100,000 keys in getMulti, given this test:
php > $data = array_map(function($v){ return 'x' . $v; }, range(1, 100000)); php > foreach($data as $d) { $memcached->add($d, $d); } php > $multi = $memcached->getMulti($data); php > echo is_array($multi); 1 php > echo count($multi); 100000
I tried to raise it to a million, but I hit my configured PHP memory limit and immediately decided that if you getMulti out of a hundred thousand items is not enough, you are probably misusing memcached.
source share