From e616dba737e95deebd676610ec1282d4c1a01adf Mon Sep 17 00:00:00 2001 From: augushong Date: Thu, 12 Oct 2023 21:06:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0redis=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .example.env | 3 ++- config/cache.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.example.env b/.example.env index 99bb440..e2fe4ad 100644 --- a/.example.env +++ b/.example.env @@ -19,4 +19,5 @@ default_lang = zh-cn [CACHE] driver=file -REDIS_SELECT=1 \ No newline at end of file +REDIS_SELECT=1 +redis_password= \ No newline at end of file diff --git a/config/cache.php b/config/cache.php index 7b2fe8d..67fa42d 100644 --- a/config/cache.php +++ b/config/cache.php @@ -42,6 +42,7 @@ return [ 'host' => '127.0.0.1', 'select' => Env::get('cache.redis_select', 0), 'prefix' => '', + 'password' => Env::get('cache.redis_password', ''), ], // 更多的缓存连接 ],