From c23c7585d7aad0439b8da7e7dc7e1bb3b6ada08b Mon Sep 17 00:00:00 2001 From: kyoya0819 Date: Fri, 30 Aug 2024 11:38:58 +0900 Subject: [PATCH] =?UTF-8?q?Redis=E6=A7=8B=E6=88=90=E8=A8=AD=E5=AE=9A?= =?UTF-8?q?=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/config/database.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/backend/config/database.php b/backend/config/database.php index 125949e..05d5f44 100644 --- a/backend/config/database.php +++ b/backend/config/database.php @@ -142,11 +142,14 @@ */ 'redis' => [ + 'driver' => env('REDIS_DRIVER', 'redis'), + 'connection' => 'default', - 'client' => env('REDIS_CLIENT', 'phpredis'), + 'client' => env('REDIS_CLIENT', 'predis'), 'options' => [ 'cluster' => env('REDIS_CLUSTER', 'redis'), + 'scheme' => 'tls', 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), ], @@ -157,15 +160,7 @@ 'password' => env('REDIS_PASSWORD'), 'port' => env('REDIS_PORT', '6379'), 'database' => env('REDIS_DB', '0'), - ], - - 'cache' => [ - 'url' => env('REDIS_URL'), - 'host' => env('REDIS_HOST', '127.0.0.1'), - 'username' => env('REDIS_USERNAME'), - 'password' => env('REDIS_PASSWORD'), - 'port' => env('REDIS_PORT', '6379'), - 'database' => env('REDIS_CACHE_DB', '1'), + 'scheme' => env('REDIS_SCHEME', 'tls'), ], ],