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