class DocDriverLocalStorage
extends DocDriverMemory
import { DocDriverLocalStorage } from "https://deno.land/x/earthstar@v10.0.0-alpha.3/src/replica/doc_drivers/localstorage.ts";
A replica driver which perists to LocalStorage, which stores a maximum of five megabytes per domain. If you're storing multiple shares, this limit will be divided among all their replicas. Works in browsers and Deno.
Constructors
new
DocDriverLocalStorage(share: ShareAddress, key?: string)Methods
_deleteConfigSync(key: string): boolean
_getConfigSync(key: string): string | undefined
_listConfigKeysSync(): string[]
_setConfigSync(key: string, value: string): void
close(erase: boolean)
deleteConfig(key: string): Promise<boolean>
getConfig(key: string): Promise<string | undefined>
listConfigKeys(): Promise<string[]>
setConfig(key: string, value: string): Promise<void>