func NewRawKVClient(pdAddrs []string) (*RawKVClient, error) {
	pdCli, err := pd.NewClient(pdAddrs)
	if err != nil {
		return nil, errors.Trace(err)
	}
	return &RawKVClient{
		clusterID:   pdCli.GetClusterID(),
		regionCache: NewRegionCache(pdCli),
		rpcClient:   newRPCClient(),
	}, nil
}
// NewRawKVClient creates a client with PD cluster addrs.
NewRawKVClient creates a client with PD cluster addrs.
// NewRawKVClient creates a client with PD cluster addrs .
func NewRawKVClient(pdAddrs []string) (*RawKVClient, error) {
	pdCli, err := pd.NewClient(pdAddrs)
	if err != nil {
		return nil, errors.Trace(err)
	}
	return &RawKVClient{
		clusterID:   pdCli.GetClusterID(),
		regionCache: NewRegionCache(pdCli),
		rpcClient:   newRPCClient(),
	}, nil
}
func NewRawKVClient ( pdAddrs [ ] string ) ( * RawKVClient , error ) { pdCli , err := pd . NewClient ( pdAddrs ) if err != nil { return nil , errors . Trace ( err ) } return & RawKVClient { clusterID : pdCli . GetClusterID ( ) , regionCache : NewRegionCache ( pdCli ) , rpcClient : newRPCClient ( ) , } , nil }
NewRawKVClient creates a client with PD cluster addrs.
NewRawKVClient creates a client with PD cluster addrs .