Commit c5939926 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

included configuration for redis cluster

parent 2f144ec6
......@@ -22,6 +22,7 @@ CACHE_DRIVER=redis
SESSION_DRIVER=file
QUEUE_CONNECTION=sync
REDIS_CACHE_CONNECTION=cache
REDIS_CACHE_HOST=redis
REDIS_HOST=redis
REDIS_PASSWORD=null
......
......@@ -70,7 +70,7 @@ return [
'redis' => [
'driver' => env('REDIS_CACHE_DRIVER', 'redis'),
'connection' => 'cache',
'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
],
],
......
......@@ -111,23 +111,36 @@ return [
'redis' => [
'client' => env('REDIS_CLIENT', 'phpredis'),
'cluster' => false,
'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
],
'default' => [
'read_write_timeout' => -1,
'host' => env('REDIS_HOST', 'localhost'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 0,
'read_write_timeout' => -1,
'host' => env('REDIS_HOST', 'localhost'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 0,
],
'cache' => [
'driver' => env('REDIS_CACHE_DRIVER', 'redis'),
'host' => env('REDIS_CACHE_HOST', 'localhost'),
'password' => env('REDIS_CACHE_PASSWORD', null),
'port' => env('REDIS_CACHE_PORT', 6379),
'database' => 0,
],
'clusters' => [
'clustercache' => [
[
'host' => env('REDIS_CACHE_HOST', 'localhost'),
'password' => env('REDIS_CACHE_PASSWORD', null),
'port' => env('REDIS_CACHE_PORT', 6379),
'database' => 0,
],
],
]
],
];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment