|
|
@ -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) { |
|
|
|