Skip to content

Commit

Permalink
fix(config/database): redis cluster (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonostendorf authored Oct 24, 2023
1 parent d616ed9 commit 764c79a
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,25 @@

'clusters' => [
'default' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'),
'prefix' => '',
[
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'),
'prefix' => '',
],
],

'cache' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'),
'prefix' => 'cache',
[
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'),
'prefix' => 'cache',
],
],
],
],
Expand Down

0 comments on commit 764c79a

Please sign in to comment.