method IDurableObjectStorage.put
IDurableObjectStorage.put<T>(
key: string,
value: T
): Promise<void>

Writes one value.

Type Parameters

Parameters

key: string

The storage key

value: T

The value to persist

Return Type

Promise<void>

Usage

import { type IDurableObjectStorage } from "cloudflare-plugin/src/index.ts";