Optional hook invoked before a controller begins a grouped batch of storage operations.
Providers can use this to open temporary connections or transactions that should stay alive across the whole batch instead of being recreated per request.
Releases open resources such as IndexedDB handles, sockets, or in-memory caches.
Optional hook invoked after a grouped batch of storage operations has completed.
Retrieves a stored media payload by content hash.
Content hash to resolve.
Lists all stored media hashes known to the provider.
Checks whether a media payload identified by its content hash is already present.
Content hash to look up.
Creates or rebinds provider resources for a specific project scope.
Project identifier used to isolate persisted media.
Reports whether the provider is currently usable for reads/writes.
Removes a stored media payload by content hash.
Content hash to remove.
Persists media in the provider and decides whether downstream providers should continue processing it.
Media payload to store.
Synchronizes the provider against a master provider and reports whether the local state was already up to date.
Source provider considered authoritative for the sync operation.
Local storage provider backed by IndexedDB.
The provider lazily opens a project-scoped database on first use so projects can switch storage contexts without recreating the database connection on every
initcall. Media payloads are stored asBlobrecords keyed by their content hash.