From a68857563f0405c767b01ee6a435a4a0973a2e0b Mon Sep 17 00:00:00 2001 From: guzeng Date: Sat, 10 Jul 2021 10:43:21 +0800 Subject: [PATCH] =?UTF-8?q?pb=E5=A2=9E=E5=8A=A0exist=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- redis.pb.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/redis.pb.go b/redis.pb.go index 5f1967a..9e4279e 100644 --- a/redis.pb.go +++ b/redis.pb.go @@ -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) {