mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正memcached缓存驱动的有效期
This commit is contained in:
3
library/think/cache/driver/Memcached.php
vendored
3
library/think/cache/driver/Memcached.php
vendored
@@ -84,7 +84,8 @@ class Memcached
|
||||
if (is_null($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->options['length'] > 0) {
|
||||
// 记录缓存队列
|
||||
|
||||
Reference in New Issue
Block a user