Created
August 28, 2018 22:15
-
-
Save bericp1/f6f5ec3a59062ab2d6f2abbebb0a3b2c to your computer and use it in GitHub Desktop.
Per-cluster Redis Config For Laravel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
// ... | |
'redis' => [ | |
'options' => [ | |
// Options can be specified here (with the lowest precedence). | |
], | |
'clusters' => [ | |
'options' => [ | |
// Or here. | |
], | |
'default' => [ | |
'options' => [ | |
// Or here (with the highest precedence). | |
// Note we added an associative `'options'` key to this array which was previously just a | |
// non-associative array of nodes and their connection parameters. | |
], | |
[ | |
'scheme' => env('REDIS_SCHEME', 'tcp'), | |
'host' => env('REDIS_HOST', '127.0.0.1'), | |
// ... | |
] | |
], | |
], | |
] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is at least relevant to Laravel 5.5.