用memcached有时会报错
the lowest two bytes of the flags array is reserved for pecl/memcache
将以前的
$mc->add($name, $value, $exp);
改为
$mc->add($name, $value,false,$exp);
the lowest two bytes of the flags array is reserved for pecl/memcache
将以前的
$mc->add($name, $value, $exp);
改为
$mc->add($name, $value,false,$exp);
本文介绍了解决使用Memcached过程中出现特定错误的方法。通过修改代码中add方法的参数,加入是否进行数据压缩的选项,可以避免因保留字节引发的问题。

被折叠的 条评论
为什么被折叠?



