Browse Source

添加缓存

boweniac 2 weeks ago
parent
commit
de3bbb790c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/logic/api_key/create_api_key_logic.go

+ 1 - 1
internal/logic/api_key/create_api_key_logic.go

@@ -43,7 +43,7 @@ func (l *CreateApiKeyLogic) CreateApiKey(req *types.ApiKeyInfo) (resp *types.Bas
 	if err != nil {
 		return nil, dberrorhandler.DefaultEntError(l.Logger, err, req)
 	}
-
+	l.svcCtx.Rds.HSet(l.ctx, "api_key", apiKey, req)
 	return &types.BaseMsgResp{Msg: errormsg.CreateSuccess}, nil
 }