Skip to main content
Home
This release is 2 versions behind 0.29.2 — the latest version of @kitsonk/kv-toolbox. Jump to latest

Built and signed on GitHub Actions

Utilities for working with Deno KV. Encrypted values, batching atomic transactions, handling blobs, querying/filtering, and more.

This package works with Node.js, Deno, Bun, Browsers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 weeks ago (0.29.0)
interface BatchAtomicOptions

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

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

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.

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

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@kitsonk/kv-toolbox

Import symbol

import { type BatchAtomicOptions } from "@kitsonk/kv-toolbox/batched_atomic";
or

Import directly with a jsr specifier

import { type BatchAtomicOptions } from "jsr:@kitsonk/kv-toolbox/batched_atomic";

Add Package

pnpm i jsr:@kitsonk/kv-toolbox
or (using pnpm 10.8 or older)
pnpm dlx jsr add @kitsonk/kv-toolbox

Import symbol

import { type BatchAtomicOptions } from "@kitsonk/kv-toolbox/batched_atomic";

Add Package

yarn add jsr:@kitsonk/kv-toolbox
or (using Yarn 4.8 or older)
yarn dlx jsr add @kitsonk/kv-toolbox

Import symbol

import { type BatchAtomicOptions } from "@kitsonk/kv-toolbox/batched_atomic";

Add Package

vlt install jsr:@kitsonk/kv-toolbox

Import symbol

import { type BatchAtomicOptions } from "@kitsonk/kv-toolbox/batched_atomic";

Add Package

npx jsr add @kitsonk/kv-toolbox

Import symbol

import { type BatchAtomicOptions } from "@kitsonk/kv-toolbox/batched_atomic";

Add Package

bunx jsr add @kitsonk/kv-toolbox

Import symbol

import { type BatchAtomicOptions } from "@kitsonk/kv-toolbox/batched_atomic";