Authored by ziy

去掉超时时间

@@ -84,7 +84,6 @@ class Memcached extends Root implements CacheInterface @@ -84,7 +84,6 @@ class Memcached extends Root implements CacheInterface
84 $instance = new \Memcached(); 84 $instance = new \Memcached();
85 $instance->setOption(\Memcached::OPT_PREFIX_KEY, $this->prefix); 85 $instance->setOption(\Memcached::OPT_PREFIX_KEY, $this->prefix);
86 $instance->setOption(\Memcached::OPT_LIBKETAMA_COMPATIBLE, true);//设置为md5并且分布算法将会 采用带有权重的一致性hash分布 86 $instance->setOption(\Memcached::OPT_LIBKETAMA_COMPATIBLE, true);//设置为md5并且分布算法将会 采用带有权重的一致性hash分布
87 - $instance->setOption(\Memcached::OPT_CONNECT_TIMEOUT, $this->timeout);  
88 if (count($instance->getServerList()) < 1) { 87 if (count($instance->getServerList()) < 1) {
89 $server = $this->getServerHost('cache'); 88 $server = $this->getServerHost('cache');
90 $_serverHosts = $server->getServerConfig($this->section, $this->node); 89 $_serverHosts = $server->getServerConfig($this->section, $this->node);