Skip to content
PACKAGES

requireKvPutIfAbsent()

Require D85 conditional-create support and produce a clear adapter error when absent.

import { requireKvPutIfAbsent } from "@graphrefly/ts/storage";
function requireKvPutIfAbsent(
tier: KvStorageTier<T>,
label = "kvStorage",
): PutIfAbsentKvStorageTier<T>
ParameterTypeDescription
tierKvStorageTier<T>tier value used by the helper.
labelunknownlabel value used by the helper.

A PutIfAbsentKvStorageTier<T> value.

import { requireKvPutIfAbsent } from "@graphrefly/ts/storage";

packages/ts/src/storage/kv.ts