rmapi-js
    Preparing search index...

    Class MemoryStore

    a Store in memory, gone when the process is; for node, bun and tests

    A blob is held as it was handed over, not copied.

    Implements

    Index
    blobs: Map<string, Uint8Array<ArrayBufferLike>> = ...

    the blobs held, by hash

    • a blob, or undefined if it is not held

      Parameters

      • hash: string

      Returns Promise<Uint8Array<ArrayBufferLike> | undefined>

    • whether each blob is held, in the order asked

      Parameters

      • hashes: string[]

      Returns Promise<boolean[]>

    • stores every blob under its hash

      Parameters

      • blobs: [string, Uint8Array<ArrayBufferLike>][]

      Returns Promise<void>

    • deletes every blob keep does not name

      Parameters

      • keep: string[]

      Returns Promise<void>