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_'), - ] + ] ], ];