Amarula.RetryCache.DETS (amarula v0.1.0)

View Source

On-disk Amarula.RetryCache adapter — survives restart.

One DETS table per connection profile (<root>/<profile>/retry_cache.dets), holding {msg_id, entry}. Bounded to @max_entries; on overflow the oldest entries (by entry.ts) are evicted. Independent of Amarula.Storage — its location is its own (:root), not borrowed from the durable-storage backend.

Opened lazily and kept open per {root, profile}; DETS auto-repairs an uncleanly-closed table on reopen.

Options

  • :root — base dir holding one .dets file per profile (default AMARULA_CACHE_DIR or ./amarula_cache).
  • :max_entries — cap before eviction (default 200).