import { Earthstar } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/deps.ts";
const { DocDriverMemory } = Earthstar;
An in-memory replica driver. Its contents will be lost when it is closed. Works everywhere.
Methods
_getAllDocs(): Promise<DocBase<string>[]>
_getLatestDocs(): Promise<DocBase<string>[]>
close(erase: boolean)
deleteConfig(key: string): Promise<boolean>
getConfig(key: string): Promise<string | undefined>
isClosed(): boolean
listConfigKeys(): Promise<string[]>
queryDocs(queryToClean: Query<string[]>): Promise<DocBase<string>[]>
setConfig(key: string, value: string): Promise<void>
upsert<DocType extends DocBase<string>>(doc: DocType): Promise<DocType>