DeltaCrdt.Storage behaviour (delta_crdt v0.6.4) 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 opaque

storage_format()

View Source (opaque)

Specs

storage_format()

Specs

t() :: module()

Link to this section Callbacks

Specs

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

write(name, storage_format)

View Source

Specs

write(name :: term(), storage_format()) :: :ok