好友迁移 + 定时器优化

This commit is contained in:
wong
2026-01-13 15:22:19 +08:00
parent 3e8b607948
commit 443ef6ad2d
6 changed files with 477 additions and 87 deletions

View File

@@ -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'];