config.go 316 B

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