Files
go-zero/core/stores/cache/config.go

15 lines
317 B
Go
Raw Permalink Normal View History

package cache
2020-07-26 17:09:05 +08:00
import "github.com/zeromicro/go-zero/core/stores/redis"
2020-07-26 17:09:05 +08:00
type (
// A ClusterConf is the config of a redis cluster that used as cache.
2020-07-26 17:09:05 +08:00
ClusterConf []NodeConf
// A NodeConf is the config of a redis node that used as cache.
2020-07-26 17:09:05 +08:00
NodeConf struct {
redis.RedisConf
Weight int `json:",default=100"`
}
)