API Reference
walFrameKey()
Build the deterministic storage key for a WAL frame sequence number.
Import
import { walFrameKey } from "@graphrefly/ts/storage";
Signature
function walFrameKey(
prefix: string,
frameSeq: number,
): string
Parameters
| Parameter | Type | Description |
|---|---|---|
prefix | string | prefix value used by the helper. |
frameSeq | number | frame seq value used by the helper. |
Returns
The stable key or reference string.
Example
import { walFrameKey } from "@graphrefly/ts/storage";
Source
packages/ts/src/storage/wal.ts