mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 16:12:49 +08:00
修正memcached缓存驱动的有效期
This commit is contained in:
1
library/think/cache/driver/Memcached.php
vendored
1
library/think/cache/driver/Memcached.php
vendored
@@ -85,6 +85,7 @@ class Memcached
|
|||||||
$expire = $this->options['expire'];
|
$expire = $this->options['expire'];
|
||||||
}
|
}
|
||||||
$name = $this->options['prefix'] . $name;
|
$name = $this->options['prefix'] . $name;
|
||||||
|
$expire = 0 == $expire ? 0 : time() + $expire;
|
||||||
if ($this->handler->set($name, $value, $expire)) {
|
if ($this->handler->set($name, $value, $expire)) {
|
||||||
if ($this->options['length'] > 0) {
|
if ($this->options['length'] > 0) {
|
||||||
// 记录缓存队列
|
// 记录缓存队列
|
||||||
|
|||||||
Reference in New Issue
Block a user