change default redis configuration structure

This commit is contained in:
Taylor Otwell
2019-02-14 11:03:41 -06:00
parent 7b675abe4b
commit df4ecb9c83

View File

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