API Reference
listByPrefix()
Convenience wrapper for deterministic prefix listing.
Import
import { listByPrefix } from "@graphrefly/ts/storage";
Signature
function listByPrefix(
tier: KvStorageTier<T>,
prefix = "",
): Promise<readonly string[]>
Parameters
| Parameter | Type | Description |
|---|---|---|
tier | KvStorageTier<T> | tier value used by the helper. |
prefix | unknown | prefix value used by the helper. |
Returns
A Promise<readonly string[]> value.
Example
import { listByPrefix } from "@graphrefly/ts/storage";
Source
packages/ts/src/storage/kv.ts