修正一处命名空间错误

This commit is contained in:
huangdijia
2016-01-28 13:57:24 +08:00
parent 5a7ea46da8
commit ad0b7255e4
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ class Memcached
$this->handler = new \Memcached;
// 设置连接超时时间(单位:毫秒)
if ($this->options['timeout'] > 0) {
$this->handler->setOption(Memcached::OPT_CONNECT_TIMEOUT, $this->options['timeout']);
$this->handler->setOption(\Memcached::OPT_CONNECT_TIMEOUT, $this->options['timeout']);
}
// 支持集群
$hosts = explode(',', $this->options['host']);