From fd02db5f2162ba39e69245eb6e0eaa5ecb2ae23c Mon Sep 17 00:00:00 2001 From: 7IN0SAN9 Date: Thu, 28 Jan 2016 17:28:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Memcached=20set?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/cache/driver/Memcached.php | 2 +- library/think/session/driver/Memcached.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/cache/driver/Memcached.php b/library/think/cache/driver/Memcached.php index e0d809a8..ea4778d9 100644 --- a/library/think/cache/driver/Memcached.php +++ b/library/think/cache/driver/Memcached.php @@ -84,7 +84,7 @@ class Memcached $expire = $this->options['expire']; } $name = $this->options['prefix'] . $name; - if ($this->handler->set($name, $value, 0, $expire)) { + if ($this->handler->set($name, $value, $expire)) { if ($this->options['length'] > 0) { // 记录缓存队列 $queue = $this->handler->get('__info__'); diff --git a/library/think/session/driver/Memcached.php b/library/think/session/driver/Memcached.php index 25384305..bccfdda0 100644 --- a/library/think/session/driver/Memcached.php +++ b/library/think/session/driver/Memcached.php @@ -92,7 +92,7 @@ class Memcached extends SessionHandler */ public function write($sessID, $sessData) { - return $this->handler->set($this->config['session_name'] . $sessID, $sessData, 0, $this->config['expire']); + return $this->handler->set($this->config['session_name'] . $sessID, $sessData, $this->config['expire']); } /**