Skip to content

Commit

Permalink
fix docker link 访问redis 时报参数类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
snail2lzq committed Jan 16, 2024
1 parent 6bf5f3d commit 85fb78e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', '6379'),
'port' => (int) env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'),
],

'cache' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', '6379'),
'port' => (int) env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'),
],

Expand Down

0 comments on commit 85fb78e

Please sign in to comment.