Bazaar.Idempotency.ETS (Bazaar v0.3.0)

Copy Markdown View Source

In-memory idempotency store on a named ETS table.

Add it to your supervision tree:

children = [
  Bazaar.Idempotency.ETS,
  MyAppWeb.Endpoint
]

Records never expire and live until the process restarts, which is fine for development and a single node. In production, and always with more than one node, use a Bazaar.Idempotency.Store on Cachex or your database instead.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])