嗨我想知道为什么我不能存储多维(数组大小超过1000)
$memcache = new Memcache;
$memcache->connect('localhost', 11211) or die ("Could not connect");
以上的工作正常......
以下一个有错误...
$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
谢谢并提前
答案 0 :(得分:2)
您尝试存储的数组可能太大了。 Memcache对单个项目的大小有限制。 每件商品的最大尺寸为1,048,576字节或1MB 。
这是关于这个问题的另一个主题......