View Source IdempotencyPlug.EctoStore (TestServer v0.1.0)
Module that defines an Ecto store.
A migration file should be generated with
mix idempotency_plug.ecto.gen.migration
.
examples
Examples
defmodule MyApp.Application do
# ..
def start(_type, _args) do
children = [
{IdempotencyPlug.RequestTracker, [
store: {IdempotencyPlug.EctoStore, repo: MyApp.Repo}]}
# ...
]
Supervisor.start_link(children, strategy: :one_for_one, name: MyApp.Supervisor)
end
end