Skip to content

Commit

Permalink
Redis構成設定の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoya0819 committed Aug 30, 2024
1 parent e21d02a commit c23c758
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions backend/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -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_'),
],

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

],
Expand Down

0 comments on commit c23c758

Please sign in to comment.