1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/// Transaction structure.
///
/// Each transaction consists of two parts:
/// a list of checks and a list of operations. Operations will be performed iff
/// all checks are satisfied. Checks and then operations are performed atomically.
/// Transaction check structure.
///
/// Each check is by a pair (key, version). It is satisfied if the specified key
/// has the specified version or if the version given is 0 and the key exists.
/// Transaction operation.
///
/// There are 3 possible operations in rsoffkv transaction: Create, Set or Erase
/// Transaction operation result.
///
/// Result is returned only for operations affecting
/// versions (namely Create and Set). Result is represented with new version of the key.