replace cache key with colon (#746)

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
This commit is contained in:
anqiansong
2021-06-02 10:37:49 +08:00
committed by GitHub
parent 75a330184d
commit 453f949638
3 changed files with 16 additions and 16 deletions

View File

@@ -11,7 +11,7 @@ import (
"github.com/tal-tech/go-zero/core/stores/mongoc"
)
{{if .Cache}}var prefix{{.Type}}CacheKey = "cache#{{.Type}}#"{{end}}
{{if .Cache}}var prefix{{.Type}}CacheKey = "cache:{{.Type}}:"{{end}}
type {{.Type}}Model interface{
Insert(ctx context.Context,data *{{.Type}}) error