Normandy.Behaviours.SessionRegistry.Native (normandy v1.1.1)

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

Convenience: start a uniquely-named Registry and return its name as the handle.

Starts a unique Registry. :name defaults to this module.

Functions

new(opts \\ [])

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

Convenience: start a uniquely-named Registry and return its name as the handle.

start_link(opts \\ [])

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

Starts a unique Registry. :name defaults to this module.