Showing
1 changed file
with
0 additions
and
1 deletions
@@ -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); |
-
Please register or login to post a comment