kvStorage()
Build a typed KV tier from a byte backend and codec.
Import
Section titled “Import”import { kvStorage } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function kvStorage(opts: KvStorageOptions<T>): KvStorageTier<T>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
opts | KvStorageOptions<T> | Options that configure the helper. |
Returns
Section titled “Returns”A KvStorageTier<T> value.
Example
Section titled “Example”import { kvStorage } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/kv.ts