Packages

The typed, attribute-queryable in-memory store for ETS and Mnesia. A simple ORM with record expiry (TTL), crash resilience, and atomic take-once reads.

Current section

Files

Jump to
active_memory lib application.ex
Raw

lib/application.ex

defmodule ActiveMemory.Application do
@moduledoc """
Starts the `ActiveMemory` supervision tree, which runs the
`ActiveMemory.TableHeir` process that preserves ETS tables across store
crashes and restarts.
"""
use Application
@impl true
def start(_type, _args) do
children = [
ActiveMemory.TableHeir
]
Supervisor.start_link(children, strategy: :one_for_one, name: ActiveMemory.Supervisor)
end
end