A master-slave redis client implement based on GoFrame redis
GoFrame redis master slave
package main
import (
"github.com/hetiansu5/msredis"
)
masterName := "cache" // master redis config name
slaveName := "cache_slave" // slave redis config name, can be more
group := msredis.Group(masterName, slaveName)
group.CTX(ctx).Do("GET", "key1")
MIT