Bounded, reusable, memory-only TLS 1.2 EMS session cache.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec lookup(binary(), :auto | binary() | {binary(), binary()}, GenServer.server()) :: {:ok, SSL.TLS12Session.t()} | :miss
@spec put(binary(), SSL.TLS12Session.t(), GenServer.server()) :: :ok | {:error, atom()}
@spec start_link(keyword()) :: GenServer.on_start()
@spec stats(GenServer.server()) :: %{count: non_neg_integer(), bytes: non_neg_integer()} | {:error, atom()}