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