Kantoor.Bodies.Sweeper (Kantoor v1.0.0)

Supervised timer that keeps the body cache within its budget by calling Kantoor.Bodies.sweep/0. A failed sweep is logged and retried next tick.

Summary

Functions

Returns a specification to start this module under a supervisor.

Runs a sweep now and returns the number of evicted bodies.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

sweep_now(server \\ __MODULE__)

@spec sweep_now(GenServer.server()) :: non_neg_integer()

Runs a sweep now and returns the number of evicted bodies.