__REDIS_CON = StrictRedisCluster(
startup_nodes=[{"host": "221.122.111.103","port": "14000"},{"host": "221.122.127.222","port": "14000"}],
? ? skip_full_coverage_check=True,
? ? max_connections=20)
隨著導(dǎo)入的不同的redis版本會(huì)報(bào)未知的 ?unknow command "CONFIG"
debug進(jìn)入源碼會(huì)發(fā)現(xiàn) redis集群鏈接會(huì)默認(rèn)進(jìn)行請(qǐng)求測(cè)試 ?執(zhí)行的指令是 "CONFIG GET"?
所以redis報(bào)錯(cuò)核畴,我們平時(shí)指令都是 get set 之類的 很顯然不知道 config get 是啥,所以配置一個(gè)跳過檢查的參數(shù)?skip_full_coverage_check=True ?就可以了