Pow.Postgres.Store.AutoDeleteExpired (pow_postgres_store v1.0.0)

When started, this server will regularly clean up the table from expired records.

It is not necessary to do this very often, since expired records won't be returned by get/2 or all/2. But it will keep the table size smaller.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Starts the server.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.

Link to this function

start_link(opts \\ [])

Starts the server.

Options:

  • interval - interval in milliseconds how often expired records will be cleaned from the database. Defaults to 1 hour.