delta_crdt v0.5.9 DeltaCrdt.Storage behaviour

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 opaque storage_format() (opaque)

Link to this section Callbacks

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