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

changed database config to support cluster

parent 50d67087
......@@ -9,6 +9,7 @@ use Jenssegers\Agent\Agent;
use LaravelLocalization;
use Illuminate\Support\Facades\Redis;
use Response;
use Cache;
class StartpageController extends Controller
{
......
......@@ -112,6 +112,14 @@ return [
'client' => env('REDIS_CLIENT', 'phpredis'),
'cluster' => true,
'options' => [
'cluster' => 'redis',
'parameters' => [
'password' => env('REDIS_CACHE_PASSWORD', null),
],
],
'default' => [
'read_write_timeout' => -1,
'host' => env('REDIS_HOST', 'localhost'),
......@@ -127,16 +135,8 @@ return [
'database' => 0,
],
'clustercache' => [
'client' => env('REDIS_CLIENT', 'phpredis'),
'cluster' => true,
'options' => [
'cluster' => 'redis',
'parameters' => [
'password' => env('REDIS_CACHE_PASSWORD', null),
],
],
'clusters' => [
'clusters' => [
'clustercache' => [
[
'host' => env('REDIS_CACHE_HOST', 'localhost'),
'password' => env('REDIS_CACHE_PASSWORD', null),
......
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