Nebulex.Adapters.Mnesia.Expiration (nebulex_mnesia_adapter v2.6.5)

View Source

A GenServer that periodically cleans up expired keys from the Mnesia cache based on the :cleanup_interval configuration.

Example

config :my_app, MyApp.MnesiaCache,
  cleanup_interval: 1_000 * 60 * 60 * 2

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Default cleanup interval in milliseconds of 6 hours.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(opts)

Callback implementation for GenServer.init/1.

start_link(opts)

Default cleanup interval in milliseconds of 6 hours.