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