Skip to content

Commit

Permalink
fix: modify New func of cmd cache
Browse files Browse the repository at this point in the history
  • Loading branch information
qloog committed Mar 16, 2022
1 parent 3e61e53 commit 99290ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/eagle/internal/cache/add/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ type {{.LcName}}Cache struct {
}
// New{{.Name}}Cache new a cache
func New{{.Name}}Cache() *{{.Name}}Cache {
func New{{.Name}}Cache() {{.Name}}Cache {
jsonEncoding := encoding.JSONEncoding{}
cachePrefix := ""
return &{{.Name}}Cache{
return &{{.LcName}}Cache{
cache: cache.NewRedisCache(redis.RedisClient, cachePrefix, jsonEncoding, func() interface{} {
return &model.{{.Name}}Model{}
}),
Expand Down
2 changes: 1 addition & 1 deletion cmd/eagle/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

var (
// Version is the version of the compiled software.
Version = "v0.12.0"
Version = "v0.12.1"

rootCmd = &cobra.Command{
Use: "eagle",
Expand Down

0 comments on commit 99290ff

Please sign in to comment.