Jidoka.Session.Store.Dets (Jidoka v0.9.0)

Copy Markdown View Source

Disk-backed, lease-aware session store built on Erlang DETS.

This adapter is suitable for one BEAM node that needs sessions to survive a process or node restart. One GenServer owns the DETS table and serializes all lease transitions. Each accepted write calls :dets.sync/1 before reply. Use an external transactional store for multi-node ownership.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts a disk-backed session store.

Types

option()

@type option() ::
  {:path, Path.t()}
  | {:table, atom()}
  | {:name, GenServer.name()}
  | {:auto_save, non_neg_integer() | :infinity}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

@spec start_link([option()]) :: GenServer.on_start()

Starts a disk-backed session store.