Normandy.Behaviours.SessionRegistry.Redis.Via (normandy v1.0.0)

View Source

:via callbacks for SessionRegistry.Redis, delegating to the local owner GenServer. A Turn.Server started under {:via, __MODULE__, {owner, session_id}} registers atomically at process start (SET … NX); a losing concurrent start gets {:error, {:already_started, pid}} and the router routes to the winner.

Summary

Functions

register_name(arg, pid)

send(name, msg)

unregister_name(arg)

whereis_name(arg)