修正redis cache类一处bug

This commit is contained in:
huangdijia
2016-02-02 12:45:35 +08:00
parent 164526ea33
commit 38f5ff2771

View File

@@ -51,8 +51,8 @@ class Memcache
foreach ((array) $hosts as $i => $host) {
$port = isset($ports[$i]) ? $ports[$i] : $ports[0];
$this->options['timeout'] > 0 ?
$this->handler->addServer($host, $port, $this->options['persistent'], 1) :
$this->handler->addServer($host, $port, $this->options['persistent'], 1, $this->options['timeout']);
$this->handler->addServer($host, $port, $this->options['persistent'], 1, $this->options['timeout']) :
$this->handler->addServer($host, $port, $this->options['persistent'], 1);
}
}