diff --git a/library/think/cache/driver/Memcached.php b/library/think/cache/driver/Memcached.php index 26d4daff..e0d809a8 100644 --- a/library/think/cache/driver/Memcached.php +++ b/library/think/cache/driver/Memcached.php @@ -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']); diff --git a/library/think/session/driver/Memcached.php b/library/think/session/driver/Memcached.php index 680e3d10..25384305 100644 --- a/library/think/session/driver/Memcached.php +++ b/library/think/session/driver/Memcached.php @@ -45,7 +45,7 @@ class Memcached extends SessionHandler $this->handler = new \Memcached; // 设置连接超时时间(单位:毫秒) 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']);