修复 Memcached set

This commit is contained in:
7IN0SAN9
2016-01-28 17:28:57 +08:00
parent 9424681bd1
commit fd02db5f21
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ class Memcached
$expire = $this->options['expire']; $expire = $this->options['expire'];
} }
$name = $this->options['prefix'] . $name; $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) { if ($this->options['length'] > 0) {
// 记录缓存队列 // 记录缓存队列
$queue = $this->handler->get('__info__'); $queue = $this->handler->get('__info__');

View File

@@ -92,7 +92,7 @@ class Memcached extends SessionHandler
*/ */
public function write($sessID, $sessData) 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']);
} }
/** /**