升级go-zero版本

  1. PS D:\Projects\Github\NoobWu\go-zero-demo\greet> go get -u

image.png
D:\Projects\Github\NoobWu\go-zero-demo\go.mod
image.png

model对应的缓存Key修改

D:\Projects\Github\NoobWu\go-zero-demo\book\service\user\model\usermodel.go

  1. var (
  2. cacheUserNumberPrefix = "cache:User:number:"
  3. cacheUserIdPrefix = "cache:User:id:"
  4. )

image.png