Limen.State.Sweeper (limen v0.2.1)

Copy Markdown View Source

Periodically removes an instance's expired bans and idle GCRA keys.

Runs every :sweep_interval milliseconds (see Limen.Config), entirely off the request path. Sweeping also resynchronises the :atomics size counters the request path uses to enforce table caps.

Summary

Functions

Returns a specification to start this module under a supervisor.

Sweeps instance now and waits until it is done.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

sweep(instance)

@spec sweep(atom()) :: :ok

Sweeps instance now and waits until it is done.