好友迁移 + 定时器优化
This commit is contained in:
@@ -83,6 +83,15 @@ class Cache
|
||||
public function init(array $options = [], $force = false)
|
||||
{
|
||||
if (is_null($this->handler) || $force) {
|
||||
// 如果配置为空,使用默认配置
|
||||
if (empty($options)) {
|
||||
$options = $this->config;
|
||||
}
|
||||
|
||||
// 确保有 type 配置
|
||||
if (empty($options['type'])) {
|
||||
$options['type'] = 'File';
|
||||
}
|
||||
|
||||
if ('complex' == $options['type']) {
|
||||
$default = $options['default'];
|
||||
|
||||
Reference in New Issue
Block a user