You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-zero/core/stores/cache/config.go

15 lines
316 B
Go

package cache
4 years ago
import "github.com/tal-tech/go-zero/core/stores/redis"
4 years ago
type (
// A ClusterConf is the config of a redis cluster that used as cache.
4 years ago
ClusterConf []NodeConf
// A NodeConf is the config of a redis node that used as cache.
4 years ago
NodeConf struct {
redis.RedisConf
Weight int `json:",default=100"`
}
)