diff --git a/config/cache.php b/config/cache.php index 67fa42d..044cf99 100644 --- a/config/cache.php +++ b/config/cache.php @@ -39,7 +39,7 @@ return [ // 驱动方式 'type' => 'redis', // 服务器地址 - 'host' => '127.0.0.1', + 'host' => Env::get('cache.redis_host', '127.0.0.1'), 'select' => Env::get('cache.redis_select', 0), 'prefix' => '', 'password' => Env::get('cache.redis_password', ''),