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