Browse Source

更新pb.go

master
guzeng 2 years ago
parent
commit
c5f525ccfa
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      redis.pb.go
  2. +1
    -1
      redis.proto

+ 4
- 0
redis.pb.go View File

@ -479,6 +479,7 @@ func init() {
type RedisService interface {
Get(in *GetRequest, out *GetStringResponse) error
Set(in *SetRequest, out *SetResponse) error
SetNx(in *SetRequest, out *DelResponse) error
Del(in *DelRequest, out *DelResponse) error
HGet(in *HGetRequest, out *GetStringResponse) error
HSet(in *HSetRequest, out *HSetResponse) error
@ -574,6 +575,9 @@ func (c *RedisServiceClient) Get(in *GetRequest, out *GetStringResponse) error {
func (c *RedisServiceClient) Set(in *SetRequest, out *SetResponse) error {
return c.Call("RedisService.Set", in, out)
}
func (c *RedisServiceClient) SetNx(in *SetRequest, out *DelResponse) error {
return c.Call("RedisService.SetNx", in, out)
}
func (c *RedisServiceClient) Del(in *DelRequest, out *DelResponse) error {
return c.Call("RedisService.Del", in, out)
}


+ 1
- 1
redis.proto View File

@ -107,7 +107,7 @@ message LLenRequest{
service RedisService {
rpc Get (GetRequest) returns (GetStringResponse); // 使key查询
rpc Set (SetRequest) returns (SetResponse);
rpc SetNx (SetRequest) returns (DelResponse) //
rpc SetNx (SetRequest) returns (DelResponse); //
rpc Del (DelRequest) returns (DelResponse);
rpc HGet (HGetRequest) returns (GetStringResponse); // 使hash key查询
rpc HSet (HSetRequest) returns (HSetResponse);


Loading…
Cancel
Save