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

Copy Markdown

Keeps agents in memory, until the node stops. For tests and trying things out.

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

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.