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