首页 > 数据库 >laravel Redis sentinel config

laravel Redis sentinel config

时间:2023-01-09 17:13:04浏览次数:42  
标签:laravel Redis tcp 11.11 env sentinel null config

'default' => [
            'tcp://11.11.11.11:26379',
            'tcp://11.11.11.11:26381',
            'tcp://11.11.11.11:26382',    //这3个都是sentinel节点的地址
            'options' => [
                'replication' => 'sentinel',
                'service'     => env('REDIS_SENTINEL_SERVICE', 'mymaster'),    //sentinel
                'parameters'  => [
                    'password' => env('REDIS_PASSWORD', null),    //redis的密码,没有时写null
                    'database' => 0,
                ],
            ],
        ]

  

 

标签:laravel,Redis,tcp,11.11,env,sentinel,null,config
From: https://www.cnblogs.com/sweetsunnyflower/p/17037595.html

相关文章