Skip to content

Instantly share code, notes, and snippets.

@bericp1
Created August 28, 2018 22:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bericp1/f6f5ec3a59062ab2d6f2abbebb0a3b2c to your computer and use it in GitHub Desktop.
Save bericp1/f6f5ec3a59062ab2d6f2abbebb0a3b2c to your computer and use it in GitHub Desktop.
Per-cluster Redis Config For Laravel
<?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'),
// ...
]
],
],
]
]
@bericp1
Copy link
Author

bericp1 commented Aug 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment