(key string)
| 89 | } |
| 90 | |
| 91 | func (c *Client) StrLen(key string) (int32, error) { |
| 92 | client, err := newGrpcClient(c.Addr) |
| 93 | if err != nil { |
| 94 | return 0, nil |
| 95 | } |
| 96 | resp, err := client.StrLen(context.Background(), &gstring.StrLenRequest{Key: key}) |
| 97 | if err != nil { |
| 98 | return 0, err |
| 99 | } |
| 100 | return resp.Length, nil |
| 101 | } |
| 102 | |
| 103 | func (c *Client) Type(key string) (string, error) { |
| 104 | client, err := newGrpcClient(c.Addr) |
nothing calls this directly
no test coverage detected