最新版本

This commit is contained in:
2026-05-26 09:44:21 +08:00
parent 822ed9a099
commit fa41edf857
24 changed files with 597 additions and 163 deletions

View File

@@ -24,6 +24,19 @@ return [
// 序列化机制 例如 ['serialize', 'unserialize']
'serialize' => [],
],
// 更多的缓存连接
'redis' => [
// 驱动方式固定为 redis
'type' => 'redis',
// 服务器地址 (如果是本地就写 127.0.0.1)
'host' => '127.0.0.1',
// 端口号,默认 6379
'port' => 6379,
// 密码,如果没有设置可留空
'password' => '',
// 缓存前缀,建议设为你的项目简称,防止和其他项目冲突
'prefix' => 'tickets_',
// 缓存有效期
'expire' => 0,
],
],
];