mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
修复 Memcached set
This commit is contained in:
2
library/think/cache/driver/Memcached.php
vendored
2
library/think/cache/driver/Memcached.php
vendored
@@ -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__');
|
||||||
|
|||||||
@@ -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']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user