From 01adf4261b517a4c3671a8dbb10d7b981831b2dd Mon Sep 17 00:00:00 2001 From: augushong Date: Sat, 19 Mar 2022 13:10:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97=E8=AE=B0?= =?UTF-8?q?=E5=BD=95;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/cache.php | 19 +++++++++++++++++-- config/log.php | 15 +++++++++++++-- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/config/cache.php b/config/cache.php index 292f69e..a14d5cd 100644 --- a/config/cache.php +++ b/config/cache.php @@ -1,15 +1,22 @@ Env::get('cache.driver', 'file'), + 'default' => $default, // 缓存连接方式配置 'stores' => [ @@ -27,6 +34,14 @@ return [ // 序列化机制 例如 ['serialize', 'unserialize'] 'serialize' => [], ], + + // redis缓存 + 'redis' => [ + // 驱动方式 + 'type' => 'redis', + // 服务器地址 + 'host' => '127.0.0.1', + ], // 更多的缓存连接 ], ]; diff --git a/config/log.php b/config/log.php index 24051dd..87e1492 100644 --- a/config/log.php +++ b/config/log.php @@ -1,14 +1,25 @@ Env::get('log.channel', 'debug_mysql'), // 日志记录级别 - 'level' => [], + 'level' => $level, + // 日志类型记录的通道 ['error'=>'email',...] 'type_channel' => [], // 关闭全局日志写入 @@ -60,7 +71,7 @@ return [ 'charset' => Env::get('database.charset', 'utf8'), // 数据库表前缀 'prefix' => Env::get('database.prefix', 'ul_'), - ] + ] ], ];