mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 12:38:11 +08:00
Replace header text "Payment Plugin for ThinkAdmin" with "ThinkAdmin Plugin for ThinkAdmin" across project files (configs, controllers, plugins, php-cs-fixer, etc.) to unify branding. Add a new composer script "rewrite-model" to regenerate models and run php-cs-fixer. Also apply a minor newline fix in .copilot-commit-message-instructions.md.
63 lines
2.2 KiB
PHP
63 lines
2.2 KiB
PHP
<?php
|
||
|
||
declare(strict_types=1);
|
||
/**
|
||
* +----------------------------------------------------------------------
|
||
* | ThinkAdmin Plugin for ThinkAdmin
|
||
* +----------------------------------------------------------------------
|
||
* | 版权所有 2014~2026 ThinkAdmin [ thinkadmin.top ]
|
||
* +----------------------------------------------------------------------
|
||
* | 官方网站: https://thinkadmin.top
|
||
* +----------------------------------------------------------------------
|
||
* | 开源协议 ( https://mit-license.org )
|
||
* | 免责声明 ( https://thinkadmin.top/disclaimer )
|
||
* | 会员特权 ( https://thinkadmin.top/vip-introduce )
|
||
* +----------------------------------------------------------------------
|
||
* | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
|
||
* | github 代码仓库: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' => syspath('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', ''),
|
||
],
|
||
],
|
||
];
|