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

    Class StorageProviderBaseAbstract

    Base contract for storage backends used by StorageController.

    Implementations decide how media is persisted, synchronized, and retrieved, while the controller coordinates batching and multi-provider fallback. Providers are expected to be reusable across project loads, which is why explicit init and destroy lifecycle hooks are part of the contract.

    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>

    • Retrieves a stored media payload by content hash.

      Parameters

      • mediaHash: string

        Content hash to resolve.

      Returns Promise<null | StorageMediaData>

    • Lists all stored media hashes known to the provider.

      Returns Promise<string[]>

    • 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

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