Single-node authorization transaction store backed by a private ETS table.
Start it under your application's supervisor and pass
{AttestoClient.AuthorizationTransaction.Store.ETS, pid} to AttestoClient.AuthorizationCode.start/2
and AttestoClient.AuthorizationCode.callback/3. The owning GenServer
serializes insert and consume operations, providing atomic single-use state.
Entries expire against monotonic time and are removed lazily on access.
This implementation is intentionally not distributed. Use a database or
distributed cache adapter implementing
AttestoClient.AuthorizationTransaction.Store when callbacks can reach
different nodes.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type option() :: GenServer.option() | {:max_entries, pos_integer()}
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec start_link([option()]) :: GenServer.on_start()