最新版本
This commit is contained in:
@@ -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,
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
@@ -60,4 +60,16 @@ return [
|
||||
|
||||
// 更多的数据库配置信息
|
||||
],
|
||||
// 2. 新增:宝塔远程数据库连接
|
||||
'remote' => [
|
||||
'type' => 'mysql',
|
||||
'hostname' => '127.0.0.1',
|
||||
'database' => '112_5_15_136_255',
|
||||
'username' => '112_5_15_136_255',
|
||||
'password' => 'xz1YX1jswSWzkE4K',
|
||||
'hostport' => '3306',
|
||||
'charset' => 'utf8mb4',
|
||||
'prefix' => '', // 如果有表前缀请填写
|
||||
'break_reconnect' => true, // 远程连接建议开启断线重连
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user