GraphReFlyTS

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

ParameterTypeDescription
prefixstringprefix value used by the helper.
seqnumberseq 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