Skip to content
PACKAGES

memoryBackend()

Create a byte-cloning in-memory backend.

import { memoryBackend } from "@graphrefly/ts/storage";
function memoryBackend(initial: Iterable<readonly [string, Uint8Array]> = []): MemoryBackend
ParameterTypeDescription
initialIterable<readonly [string, Uint8Array]>initial value used by the helper.

A MemoryBackend value.

import { memoryBackend } from "@graphrefly/ts/storage";

packages/ts/src/storage/backend.ts