View Source Conion.Store.Persistor behaviour (conion v0.1.0)

Persistor is a behaviour which implements the low-level read! and write! functions to store any kind of data to any kind of storage.

Summary

Callbacks

Reads any kind of data from a store with any name and returns the read data or raises an exception.

Writes any kind of data to a store with any name and returns :ok or raises an exception.

Callbacks

read!(t)

@callback read!(String.t()) :: any()

Reads any kind of data from a store with any name and returns the read data or raises an exception.

write!(t, any)

@callback write!(String.t(), any()) :: :ok

Writes any kind of data to a store with any name and returns :ok or raises an exception.