jti_register v0.1.0 JTIRegister.ETS View Source
Implementation of the JTIRegister
behaviour relying on ETS
Stores the JTIs in an ETS table. It is therefore not distributed and not suitable when having more than one node.
Uses monotonic time, so that erroneous server time does not result in JTIs not being deleted.
Options
:cleanup_interval
: the interval between cleanups of the underlying ETS table in seconds. Defaults to 15
Starting the register
In your MyApp.Application
module, add:
children = [
JTIRegister.ETS
]
or
children = [
{JTIRegister.ETS, cleanup_interval: 30}
]
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.