Skip to main content
Module

x/tpy/mod.ts>Pylon.KV.OperationOptions.Put

🔑 A strongly typed Pylon API client.
Latest
interface Pylon.KV.OperationOptions.Put
import { type Pylon } from "https://deno.land/x/tpy@v1.0.0-RC/mod.ts";
const { Put } = Pylon.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.