Browse Source

pb增加exist方法

master
guzeng 3 years ago
parent
commit
a68857563f
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      redis.pb.go

+ 8
- 0
redis.pb.go View File

@ -327,6 +327,8 @@ type RedisService interface {
HDel(in *HDelRequest, out *DelResponse) error
SetExpire(in *SetExpireRequest, out *SetExpireResponse) error
HGetAll(in *GetRequest, out *HGetListResponse) error
HExists(in *HGetRequest, out *DelResponse) error
Exists(in *GetRequest, out *DelResponse) error
}
// AcceptRedisServiceClient accepts connections on the listener and serves requests
@ -422,6 +424,12 @@ func (c *RedisServiceClient) SetExpire(in *SetExpireRequest, out *SetExpireRespo
func (c *RedisServiceClient) HGetAll(in *GetRequest, out *HGetListResponse) error {
return c.Call("RedisService.HGetAll", in, out)
}
func (c *RedisServiceClient) HExists(in *HGetRequest, out *DelResponse) error {
return c.Call("RedisService.HExists", in, out)
}
func (c *RedisServiceClient) Exists(in *GetRequest, out *DelResponse) error {
return c.Call("RedisService.Exists", in, out)
}
// DialRedisService connects to an RedisService at the specified network address.
func DialRedisService(network, addr string) (*RedisServiceClient, *rpc.Client, error) {


Loading…
Cancel
Save