Stub options to redis sentinel and load balancing

This commit is contained in:
David Bomba 2023-02-20 12:58:20 +11:00
parent 351b787220
commit 4a462177ef

View File

@ -200,6 +200,7 @@ return [
'replication' => 'sentinel',
'service' => env('REDIS_SENTINEL_SERVICE', 'mymaster'),
'sentinel_timeout' => 3.0,
// 'load_balancing' => false,
'parameters' => [
'password' => env('REDIS_PASSWORD', null),
'database' => env('REDIS_DB', 0),
@ -229,3 +230,11 @@ return [
],
];
/**
*'replication' => function () {
* $strategy = new Predis\Replication\ReplicationStrategy();
* $strategy->disableLoadBalancing();
* return new Predis\Connection\Replication\SentinelReplication($strategy);
*}];
*/