Davy.LockStore.ETS (davy v0.3.0)

Copy Markdown View Source

ETS-based in-memory lock store for single-node deployments.

Locks are stored in a named ETS table with TTL-based expiry. Expired locks are cleaned up lazily on access.

Summary

Functions

Initialise the ETS table. Call this once during application startup or in your test setup.

Remove all locks. Useful in tests.

Functions

init()

@spec init() :: :ok

Initialise the ETS table. Call this once during application startup or in your test setup.

reset()

@spec reset() :: :ok

Remove all locks. Useful in tests.