Skip to content

Commit

Permalink
feat: add ability to change redis connection schema using env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
DenTray committed Oct 16, 2024
1 parent 83205cd commit a3c8e78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
],

'default' => [
'scheme' => env('REDIS_SCHEME', 'tcp'),
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
Expand All @@ -157,6 +158,7 @@
],

'cache' => [
'scheme' => env('REDIS_SCHEME', 'tcp'),
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
Expand Down

0 comments on commit a3c8e78

Please sign in to comment.