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.
15 lines
316 B
Go
15 lines
316 B
Go
package cache
|
|
|
|
import "github.com/tal-tech/go-zero/core/stores/redis"
|
|
|
|
type (
|
|
// A ClusterConf is the config of a redis cluster that used as cache.
|
|
ClusterConf []NodeConf
|
|
|
|
// A NodeConf is the config of a redis node that used as cache.
|
|
NodeConf struct {
|
|
redis.RedisConf
|
|
Weight int `json:",default=100"`
|
|
}
|
|
)
|