memoryBackend()
Create a byte-cloning in-memory backend.
Import
Section titled “Import”import { memoryBackend } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function memoryBackend(initial: Iterable<readonly [string, Uint8Array]> = []): MemoryBackendParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
initial | Iterable<readonly [string, Uint8Array]> | initial value used by the helper. |
Returns
Section titled “Returns”A MemoryBackend value.
Example
Section titled “Example”import { memoryBackend } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/backend.ts