mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
修正一处命名空间错误
This commit is contained in:
2
library/think/cache/driver/Memcached.php
vendored
2
library/think/cache/driver/Memcached.php
vendored
@@ -41,7 +41,7 @@ class Memcached
|
|||||||
$this->handler = new \Memcached;
|
$this->handler = new \Memcached;
|
||||||
// 设置连接超时时间(单位:毫秒)
|
// 设置连接超时时间(单位:毫秒)
|
||||||
if ($this->options['timeout'] > 0) {
|
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']);
|
$hosts = explode(',', $this->options['host']);
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class Memcached extends SessionHandler
|
|||||||
$this->handler = new \Memcached;
|
$this->handler = new \Memcached;
|
||||||
// 设置连接超时时间(单位:毫秒)
|
// 设置连接超时时间(单位:毫秒)
|
||||||
if ($this->config['timeout'] > 0) {
|
if ($this->config['timeout'] > 0) {
|
||||||
$this->handler->setOption(Memcached::OPT_CONNECT_TIMEOUT, $this->config['timeout']);
|
$this->handler->setOption(\Memcached::OPT_CONNECT_TIMEOUT, $this->config['timeout']);
|
||||||
}
|
}
|
||||||
// 支持集群
|
// 支持集群
|
||||||
$hosts = explode(',', $this->config['host']);
|
$hosts = explode(',', $this->config['host']);
|
||||||
|
|||||||
Reference in New Issue
Block a user