export cache package, add client interceptor customization

This commit is contained in:
kevin
2020-09-29 17:25:49 +08:00
parent dbca20e3df
commit d1b303fe7e
19 changed files with 70 additions and 79 deletions

12
core/stores/cache/config.go vendored Normal file
View File

@@ -0,0 +1,12 @@
package cache
import "github.com/tal-tech/go-zero/core/stores/redis"
type (
ClusterConf []NodeConf
NodeConf struct {
redis.RedisConf
Weight int `json:",default=100"`
}
)