mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 12:38:11 +08:00
将 v8 分支需要的仓库级配置、Composer 依赖、CI 脚本和入口文件一次性整理到目标仓库。 主要内容: - 更新 composer.json,切换到 v8 插件化依赖与本地 path 仓库。 - 同步 .gitignore、代码风格、发布脚本和 GitHub Actions 配置。 - 调整 config、think、public 入口和默认 index 控制器以适配 v8 运行结构。 - 清理 v6 遗留的根级 license/security 文件,由组件文档和仓库说明统一承载。
63 lines
2.2 KiB
PHP
63 lines
2.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* +----------------------------------------------------------------------
|
|
* | ThinkAdmin Plugin for ThinkAdminDeveloper
|
|
* +----------------------------------------------------------------------
|
|
* | Copyright (c) 2014~2026 ThinkAdmin [ thinkadmin.top ]
|
|
* +----------------------------------------------------------------------
|
|
* | Official Website: https://thinkadmin.top
|
|
* +----------------------------------------------------------------------
|
|
* | Licensed: https://mit-license.org
|
|
* | Disclaimer: https://thinkadmin.top/disclaimer
|
|
* | Vip Rights: https://thinkadmin.top/vip-introduce
|
|
* +----------------------------------------------------------------------
|
|
* | Gitee Repository: https://gitee.com/zoujingli/ThinkAdmin
|
|
* | Github Repository: https://github.com/zoujingli/ThinkAdmin
|
|
* +----------------------------------------------------------------------
|
|
*/
|
|
return [
|
|
// 默认缓存驱动
|
|
'default' => env('CACHE_TYPE', 'file'),
|
|
// 缓存连接配置
|
|
'stores' => [
|
|
'file' => [
|
|
// 驱动方式
|
|
'type' => 'File',
|
|
// 缓存保存目录
|
|
'path' => '',
|
|
// 缓存名称前缀
|
|
'prefix' => '',
|
|
// 缓存有效期 0 表示永久缓存
|
|
'expire' => 0,
|
|
// 缓存标签前缀
|
|
'tag_prefix' => 'tag:',
|
|
// 序列化机制
|
|
'serialize' => [],
|
|
],
|
|
'safe' => [
|
|
// 驱动方式
|
|
'type' => 'File',
|
|
// 缓存保存目录
|
|
'path' => runpath('safefile/cache/'),
|
|
// 缓存名称前缀
|
|
'prefix' => '',
|
|
// 缓存有效期 0 表示永久缓存
|
|
'expire' => 0,
|
|
// 缓存标签前缀
|
|
'tag_prefix' => 'tag:',
|
|
// 序列化机制
|
|
'serialize' => [],
|
|
],
|
|
'redis' => [
|
|
// 驱动方式
|
|
'type' => 'redis',
|
|
'host' => env('CACHE_REDIS_HOST', '127.0.0.1'),
|
|
'port' => env('CACHE_REDIS_PORT', 6379),
|
|
'select' => env('CACHE_REDIS_SELECT', 0),
|
|
'password' => env('CACHE_REDIS_PASSWORD', ''),
|
|
],
|
|
],
|
|
];
|