Maestro.Store.InMemory (Maestro v0.5.0)

View Source

Agent-based implementation of the event/snapshot storage mechanism

Summary

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

commit_all(events, projections)

Callback implementation for Maestro.Store.Adapter.commit_all/2.

commit_events(events)

Callback implementation for Maestro.Store.Adapter.commit_events/1.

commit_snapshot(snapshot)

Callback implementation for Maestro.Store.Adapter.commit_snapshot/1.

get_events(id, min_seq, map)

Callback implementation for Maestro.Store.Adapter.get_events/3.

get_snapshot(id, min_seq, map)

Callback implementation for Maestro.Store.Adapter.get_snapshot/3.

in_range?(map, min, max)

reset()

start_link()