Jido.Signal.Journal.Adapters.InMemory (Jido Signal v1.0.0)
View SourceIn-memory implementation of the Journal persistence behavior. Uses Agent to maintain state.
Summary
Functions
Returns a specification to start this module under a supervisor.
Gets all signals in the journal.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec get_all_signals() :: [Jido.Signal.t()]
Gets all signals in the journal.
Returns
A list of all signals stored in the journal
Examples
iex> Jido.Signal.Journal.Adapters.InMemory.put_signal(signal1)
iex> Jido.Signal.Journal.Adapters.InMemory.put_signal(signal2)
iex> signals = Jido.Signal.Journal.Adapters.InMemory.get_all_signals()
iex> length(signals)
2