@sovereignbase/storage
    Preparing search index...

    Function storeObject

    • Encrypts and caches an object, then adds a store operation to the persistent write queue.

      The object is MessagePack-encoded, gzip-compressed, padded to a 1 KiB boundary, and encrypted before it enters the Cache API. The returned promise settles only after both the cache write and queue write complete. A queue consumer can then read the opaque response from the cache and upload it to url.

      Parameters

      • url: `http://${string}` | `https://${string}`

        Absolute HTTP(S) URL that identifies the object locally and remotely.

      • object: unknown

        Any value supported by the MessagePack encoder.

      • cipherKey: CipherKey

        Cryptosuite cipher key used to encrypt the object.

      Returns Promise<void>

      StorageError with code MAX_OBJECT_SIZE_EXCEEDED when the compressed object exceeds 24 MiB. Encoding, encryption, Cache API, and IndexedDB failures also reject the promise.