class AttachmentDriverMemory
implements IReplicaAttachmentDriver
Re-export
import { AttachmentDriverMemory } from "https://deno.land/x/earthstar@v10.2.0/src/entries/npm.ts";
An attachment driver which persists attachments in memory. Works everywhere.
Methods
private
getKey(formatName: string, attachmentHash: string)close(erase: boolean)
erase(formatName: string, attachmentHash: string)
filter(hashes: Record<string, Set<string>>): Promise<{ format: string; hash: string; }[]>
getAttachment(formatName: string, attachmentHash: string): Promise<DocAttachment | undefined>
isClosed(): boolean
stage(formatName: string, attachment: ReadableStream<Uint8Array> | Uint8Array)
wipe()