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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c1c746-47884.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c1c746-47884.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?