WardrikCore.Backends.MemoryStore (wardrik_core v0.1.0-rc.1)

Copy Markdown

Keeps agents in memory, for tests and trying things out. They're gone when the node stops.

children = [
  {WardrikCore.Backends.MemoryStore, name: :agents_store},
  {WardrikCore, backend: {WardrikCore.Backends.MemoryStore, name: :agents_store}}
]

Supervisor.start_link(children, strategy: :rest_for_one)

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the store. Takes a required :name.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()

Starts the store. Takes a required :name.