Support RawBatchCAS command
The requirement was first brought up in https://github.com/tikv/client-go/pull/239 I think we may need more discuss to decide if it is a generic requirement.
/cc @neicunlideyu @iosmanthus
The requirement was first brought up in #239 I think we may need more discuss to decide if it is a generic requirement.
/cc @neicunlideyu @iosmanthus
There is no such interface RawBatchBatchCompareAndSwap in TiKV for now. We may need to implement this interface from the TiKV first. However, the CAS implementation of TiKV is considered unstable for now because of the design from https://github.com/tikv/rfcs/pull/69. I suggest delay this feature but keep the CAS interface in the client for some use cases.
The client can batch CAS requests in BatchCommand and send them to tikv using the steaming interface.