【问题标题】:Failed to save data at the server from memcached program无法从 memcached 程序在服务器上保存数据
【发布时间】:2010-05-13 14:20:03
【问题描述】:

嗨,我想知道为什么我不能存储多维(数组大小超过 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

感谢并提前

【问题讨论】:

    标签: php memcached


    【解决方案1】:

    您尝试存储的数组可能太大。 Memcache 对单个项目的大小有限制。 每个项目的最大大小为 1,048,576 字节或 1MB

    这是关于这个问题的另一个线程......

    Can you store a PHP Array in Memcache?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-03-27
      • 2018-06-23
      • 1970-01-01
      • 1970-01-01
      • 2017-12-12
      • 1970-01-01
      • 2021-01-27
      相关资源
      最近更新 更多