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

x/kv_toolbox/batched_atomic.ts>BatchAtomicOptions

Utilities for working with Deno KV 🦕🗝️
Latest
interface BatchAtomicOptions
import { type BatchAtomicOptions } from "https://deno.land/x/kv_toolbox@0.19.1/batched_atomic.ts";

Options which can be adjusted when using a batched atomic.

These all default to the current values used by Deno, so typically these never need to be set unless you specifically know what you are doing!

Properties

optional
maxChecks: number

Deno KV limits the number of checks per atomic transaction. This changes the default of 99.

optional
maxMutations: number

Deno KV limits the number of mutations per atomic transactions. This changes the default of 999.

optional
maxBytes: number

Deno KV limits the overall byte size of an atomic transaction, which includes data for checks and mutations. This changes the default of 800k.

There is also the limit of 64K per value.

optional
maxKeyBytes: number

Deno KV limits the total byte size of keys associated with an atomic transaction. This changes the default of 80k.