Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
尝试使用Memcached::getMulti()而不是一次获取一个缓存键。结果是一个空数组()。我使用调试器来确保我正在传递一个索引键数组,并确保这些键在缓存中。当我确定键存在时,为什么 memcached 返回一个空数组?
Memcached::getMulti()
$mc->get('MYKEY');
对比
$mc->getMulti(array([0]=>'MYKEY0',[1]=>'MYKEY1',[2]=>'MYKEY2'));