How to connect and configure the redis of master-slave distribution in yii2

if redis is configured with master-slave distribution and is monitored by sentinel, how to use redis for yii2? is the configuration file directly connected to sentinel?

Apr.23,2021

directly connected sentinel fill in the port of sentinel and ip
sentinel is equivalent to the transit station will automatically match master/slave

Menu