Normandy.Behaviours.SessionStore.InMemory (normandy v2.2.0)

View Source

Process-backed in-memory SessionStore — the reference impl and default selection. Holds one AgentMemory per session_id plus an opaque turn-state map, in an Agent. Used for tests and library/single-node runs.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts a fresh store and returns its handle (a pid).

Starts a store.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

new(opts \\ [])

@spec new(keyword()) :: pid()

Starts a fresh store and returns its handle (a pid).

Options

None; any key raises ArgumentError.

start_link(opts \\ [])

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

Starts a store.

Options

None; any key raises ArgumentError.