From 1ad6a4b741dc0f51316826320bc3cee2bf641bb8 Mon Sep 17 00:00:00 2001 From: Tom Swinkels Date: Mon, 3 Jun 2019 13:42:12 +0200 Subject: [PATCH] Add info config of sentinel Add the sentinel config from https://github.com/laravel/framework/pull/18850 to docs. --- redis.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/redis.md b/redis.md index f651cf4740..fe6511ec9c 100644 --- a/redis.md +++ b/redis.md @@ -95,6 +95,25 @@ In addition to the default `host`, `port`, `database`, and `password` server con 'database' => 0, 'read_write_timeout' => 60, ], + +Some option if you use sentinel: + + 'redis' => [ + 'client' => 'predis', + 'sentinel' => [ + 'tcp://10.24.5.136:26379?timeout=0.100', + 'tcp://10.24.5.137:26379?timeout=0.100', + 'tcp://10.24.5.138:26379?timeout=0.100', + 'options' => [ + 'replication' => 'sentinel', + 'service' => env('REDIS_SENTINEL_SERVICE', 'mymaster'), + 'parameters' => [ + 'password' => env('REDIS_PASSWORD', null), + 'database' => 0, + ], + ], + ], + ], ### PhpRedis