嗨,我想知道为什么我不能存储多维(数组大小超过 1000)
$memcache = new Memcache;
$memcache->connect('localhost', 11211) or die ("Could not connect");
Run Code Online (Sandbox Code Playgroud)
以上 s 工作正常...
下面的有错误...
$memcache->set('key', $sear, false, 60) or die ("Failed to save data at the server");
if the $sear is string or object array then no problem for store data at the server..
but i store multi dimensional array in memcached,,i will get the error is
Failed to save data at the server
Run Code Online (Sandbox Code Playgroud)
感谢并提前
您尝试存储的数组可能太大。Memcache 对单个项目的大小有限制。每个项目的最大大小为 1,048,576 字节或 1MB。
这是关于这个问题的另一个线程......