# `Macaw.Plug.RateLimit.Table`
[🔗](https://github.com/dcoai/macaw_plug/blob/v0.1.4/lib/macaw/plug/rate_limit/table.ex#L1)

Owns `Macaw.Plug.RateLimit`'s ETS table and sweeps it.

A key whose theoretical arrival time has passed has its full burst again,
so it is the same as an absent key, and the sweep deletes it. The sweep
runs every `:sweep_every` milliseconds (default one minute).

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `start_link`

# `sweep`

```elixir
@spec sweep(integer()) :: non_neg_integer()
```

Deletes every key idle at `now` (monotonic microseconds); returns how many.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
