leads to a call to the used crdt module like this:
crdt_module.read(state, ["my-key"])
That is, the given keys are 1to1 forwarded to the crdt_module as a second argument.
This allows to make use of the read/2 function on AWLWWMap which makes it possible to only fetch the given keys from the map instead of fetching everything all the time.
For the user's benefit a small example was added to the README.
Resolves #54
This PR implements the proposal from this comment where calling:
leads to a call to the used crdt module like this:
That is, the given keys are 1to1 forwarded to the crdt_module as a second argument.
This allows to make use of the
read/2
function onAWLWWMap
which makes it possible to only fetch the given keys from the map instead of fetching everything all the time.For the user's benefit a small example was added to the README.