WardrikEvents.Retention (wardrik_events v0.1.0-rc.1)

Copy Markdown

Drops events older than :retention days, once an hour. See WardrikEvents.start_link/1.

Summary

Functions

Returns a specification to start this module under a supervisor.

Drops the events written before cutoff from every log in store.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

trim(store, cutoff)

@spec trim(WardrikStore.t(), DateTime.t()) :: :ok

Drops the events written before cutoff from every log in store.