View Source Antikythera.Session.Store behaviour (antikythera v0.5.1)

Behaviour of session store.

Summary

Types

@type session_id() :: nil | String.t()
@type session_kv() :: %{required(String.t()) => any()}

Callbacks

@callback delete(session_id()) :: :ok
@callback load(session_id()) :: {session_id(), session_kv()}
Link to this callback

save(session_id, session_kv)

View Source
@callback save(session_id(), session_kv()) :: String.t()