delta_crdt v0.5.10 DeltaCrdt.Storage behaviour View Source

This behaviour can be used to enable persistence of the CRDT.

This can be helpful in the event of crashes.

To use, implement this behaviour in a module, and pass it to your CRDT with the storage_module option.

Link to this section Summary

Link to this section Types

Link to this section Callbacks

Link to this callback read(name) View Source
read(name :: term()) :: storage_format() | nil
Link to this callback write(name, storage_format) View Source
write(name :: term(), storage_format()) :: :ok