Gemini.UserCache (Gemini v0.2.0)

This module stores active sessions.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Put metadata into session cache.

Register cert (more precisely its hash) with session cache.

Remove cert from cache.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

put_metadata(cert, k, v)

Specs

put_metadata(binary(), atom(), any()) :: {:ok, map()}

Put metadata into session cache.

Specs

register(binary()) :: {:ok, binary(), map()}

Register cert (more precisely its hash) with session cache.

Specs

start_link(any()) :: GenServer.on_start()
Link to this function

unregister(cert)

Specs

unregister(binary()) :: :ok

Remove cert from cache.