@rendley/sdk - v1.15.5
    Preparing search index...

    Class StorageIndexedDB

    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 init call. Media payloads are stored as Blob records keyed by their content hash.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    • 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.

      Returns Promise<void>

    • Releases open resources such as IndexedDB handles, sockets, or in-memory caches.

      Returns Promise<void>

    • Optional hook invoked after a grouped batch of storage operations has completed.

      Returns Promise<void>

    • Checks whether a media payload identified by its content hash is already present.

      Parameters

      • mediaHash: string

        Content hash to look up.

      Returns Promise<boolean>

    • Creates or rebinds provider resources for a specific project scope.

      Parameters

      • projectId: string

        Project identifier used to isolate persisted media.

      Returns Promise<void>

    • Reports whether the provider is currently usable for reads/writes.

      Returns boolean

    • Parameters

      • projectId: string

      Returns Promise<void>

    • Removes a stored media payload by content hash.

      Parameters

      • mediaHash: string

        Content hash to remove.

      Returns Promise<boolean>

    • Synchronizes the provider against a master provider and reports whether the local state was already up to date.

      Parameters

      Returns Promise<boolean>