You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/examples/rawkv.md
+50-1Lines changed: 50 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,4 +48,53 @@ public class Main {
48
48
session.close();
49
49
}
50
50
}
51
-
```
51
+
```
52
+
53
+
54
+
## API V2
55
+
With TiKV version >= 6.1.0, we release a new feature called "TiKV API V2" which provides a new raw key-value storage format allowing the coexistence of RawKV and TxnKV. Please refer to [v6.10 release notes](https://docs.pingcap.com/tidb/stable/release-6.1.0#ease-of-use) for detail.
56
+
57
+
To enable the API V2 mode, users need to specify the API version of the client.
The V2 Client should not access the cluster other than V2, this requires users to [enable the API V2](https://docs.pingcap.com/tidb/stable/tikv-configuration-file#api-version-new-in-v610) for the cluster:
82
+
83
+
```toml
84
+
[storage]
85
+
# The V2 cluster must enable ttl for RawKV explicitly
86
+
enable-ttl = true
87
+
api-version = 2
88
+
```
89
+
90
+
If V2 client accesses a V1 cluster or V1 cluster accesses a V2 cluster, the requests will be denied by the cluster. You can check the compatibility via the following matrix.
0 commit comments