returns a reference to a counter object
returns a reference to a fat_counter object
returns a reference to an disable-wins flag object
returns a reference to an enable-wins flag object
returns a reference to a grow-only map
returns a reference to a multi-value register
Takes an array of objects and reads the value of all objects in one batch operation. Returns a promise to an array of values in the same order.
Hint: To read a single object, use the read method on that object.
Reads several objects at once. The objects are stored in an object. Returns a new object with the read values stored under the same field in the object.
let objA = connection.counter("batch-object-read counter a")
let objB = connection.register<string>("batch-object-read register b")
let vals = await connection.readObjectsBatch({
a: objA,
b: objB
});
// could return: {a: 1, b: "hi"}
Hint: To read a single object, use the read method on that object.
returns a reference to a last-writer-wins register
returns a reference to a remove-resets map
returns a reference to an add-wins set object
returns a reference to a remove-wins set object
Sends a single update operation or an array of update operations to Antidote. If an array of updates is given, all updates in the array are executed atomically.
Generated using TypeDoc
An
AntidoteSession
is an interface to Antidote, which can be used to read and update values.There are two possible sessions: