Setu-TS
    Preparing search index...

    Class MemoryProvider

    In-memory storage provider backed by Map<string, Uint8Array>.

    getSignedUrl returns a deterministic synthetic URL memory://<encoded-key>?expires=<epoch> — non-functional off-process.

    0.1.0

    Implements

    • StorageProvider
    Index
    • Retrieves an object from memory; null when absent.

      Parameters

      • path: string

        Object path/key

      Returns Promise<Uint8Array<ArrayBufferLike> | null>

      The object bytes, or null

    • Returns a synthetic memory:// URL with expiry query parameter.

      Parameters

      • path: string

        Object path/key

      • options: { expiresIn: number }

        Expiry in seconds

      Returns Promise<string>

      The synthetic signed URL

    • Stores an object in memory.

      Object attributes are ACCEPTED AND NOT PERSISTED: this store holds bytes only and its getSignedUrl produces a synthetic URL nothing fetches, so retaining a content type would be a field no code path reads. Documented per provider in the package README rather than silently dropped.

      Parameters

      • path: string

        Object path/key

      • data: Uint8Array

        Object bytes

      • Optional_options: PutObjectOptions

        Accepted for interface parity; see above

      Returns Promise<void>