Normandy.Behaviours.SessionRegistry.Native (normandy v2.2.0)

View Source

Default SessionRegistry over Elixir's Registry (:unique keys). The handle is the registry's name (an atom). register/3 registers the calling process under session_id; the owner's death auto-unregisters it.

Summary

Functions

Starts a registry and returns its name as the handle.

Starts a unique Registry.

Functions

new(opts \\ [])

@spec new(keyword()) :: atom()

Starts a registry and returns its name as the handle.

Options

  • :name (atom/0) - The registry's name (default: a unique one).

start_link(opts \\ [])

@spec start_link(keyword()) :: {:ok, pid()} | {:error, term()}

Starts a unique Registry.

Options