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

Copy Markdown

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

Application integration fragment. Start the required processes before calling these functions. See the package README for complete setup.

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.