Persistence-backed transactional Signal key store.
The runtime owns a key-store server and a task supervisor. Persistence work runs serially under the task supervisor so slow storage never blocks lock ownership and queue management in the server.
Summary
Functions
Returns a specification to start this module under a supervisor.
Clears all persisted Signal keys.
Fetches identifiers for a Signal data type.
Returns whether the supplied reference is transaction-scoped.
Persists a typed Signal data set.
Starts the transactional key-store supervision subtree.
Runs work under an exclusive transaction key.
Creates a read-only query reference for a running key store.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Clears all persisted Signal keys.
Fetches identifiers for a Signal data type.
Returns whether the supplied reference is transaction-scoped.
Persists a typed Signal data set.
@spec start_link(keyword()) :: Supervisor.on_start()
Starts the transactional key-store supervision subtree.
Runs work under an exclusive transaction key.
@spec wrap(GenServer.server()) :: BaileysEx.Auth.KeyStore.Ref.t()
Creates a read-only query reference for a running key store.