github.com/lingyao2333/mo-zero@v1.4.1/core/stores/cache/config.go (about) 1 package cache 2 3 import "github.com/lingyao2333/mo-zero/core/stores/redis" 4 5 type ( 6 // A ClusterConf is the config of a redis cluster that used as cache. 7 ClusterConf []NodeConf 8 9 // A NodeConf is the config of a redis node that used as cache. 10 NodeConf struct { 11 redis.RedisConf 12 Weight int `json:",default=100"` 13 } 14 )