刚才在C版发了一个,有兄弟提示应该发在PHP版,虽然是C问题,不过估计研究PHP源码的人这里也有。所以来这里请教了。不清楚PHP的Memcache客户端在进行数据存取的时候是否有超时的控制。 本人做的测试是,当操作时间一长,PHP客户端就会断开这个TCP连接(比如set操作服务器一秒不回复STORED,客户端就断开连接了)。不清楚具体代码在什么位置,如何控制的超时,超时时长等,看到读取服务器返回用的是PHP的php_stream_get函数,但是此函数挺深的。 希望有看过相关源码的同学来指点一二。
对PHP源码中的的stream机制有了解的也希望能够指教。 谢谢!
对PHP源码中的的stream机制有了解的也希望能够指教。 谢谢!
$mc = new memcached(array(
'servers' => array('127.0.0.1:12000'),
'debug' => false,
'compress_threshold' => 10240,
'persistant' => true));
是不是这个?
'compress_threshold'
$mc = new memcached(array(
'servers' => array('127.0.0.1:12000'),
'debug' => false,
'compress_threshold' => 10240,
'persistant' => true));
是不是这个?
'compress_threshold'
$mc = new memcached(array(
'servers' => array('127.0.0.1:12000'),
'debug' => false,
'compress_threshold' => 10240,
'persistant' => true));
是不是这个?
'compress_threshold'
(No version information available, might be only in CVS)Memcache::connect — Open memcached server connection说明
bool Memcache::connect ( string $host [, int $port [, int $timeout]] )看到connect 函数了没?晕啊,翻下手册都不愿?