Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tpy/src/types/pylon.d.ts>KV.OperationOptions.Put

🔑 A strongly typed Pylon API client.
Latest
interface KV.OperationOptions.Put
import { type KV } from "https://deno.land/x/tpy@v1.0.0-RC/src/types/pylon.d.ts";
const { Put } = KV.OperationOptions;

Operation options for setting values in a KV namespace.

Properties

optional
ttl: number

The duration in milliseconds until the key should expire. Mutually exclusive with ttlEpoch.

optional
ttlEpoch: Date

The Date in which the key will expire.

optional
ifNotExists: boolean

Only put the key if it does not already exist.