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