change default redis configuration structure

This commit is contained in:
Taylor Otwell 2019-02-14 11:03:41 -06:00
parent 7b675abe4b
commit df4ecb9c83
1 changed files with 20 additions and 10 deletions

View File

@ -115,19 +115,29 @@
'client' => 'predis', 'client' => 'predis',
'options' => [
'cluster' => env('REDIS_CLUSTER', 'predis'),
],
'clusters' => [
'default' => [ 'default' => [
[
'host' => env('REDIS_HOST', '127.0.0.1'), 'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null), 'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379), 'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DB', 0), 'database' => env('REDIS_DB', 0),
], ],
],
'cache' => [ 'cache' => [
[
'host' => env('REDIS_HOST', '127.0.0.1'), 'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null), 'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379), 'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_CACHE_DB', 1), 'database' => env('REDIS_CACHE_DB', 1),
], ],
],
],
], ],