Sourced.EventStore.InMemory (sourced v0.1.0)

Copy Markdown View Source

An in-memory implementation of Sourced.EventStore backed by a GenServer.

Should only be used for dev and testing purposes.

Usage

store = Sourced.EventStore.new(adapter: Sourced.EventStore.InMemory)

Summary

Functions

Returns a specification to start this module under a supervisor.

The name the store's process is registered under, Sourced.EventStore.InMemory unless the store's config names it.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

name(config)

@spec name(config :: keyword()) :: GenServer.name()

The name the store's process is registered under, Sourced.EventStore.InMemory unless the store's config names it.

start_link(opts \\ [])