@kitsonk/kv-toolbox@0.29.0Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Utilities for working with Deno KV. Encrypted values, batching atomic transactions, handling blobs, querying/filtering, and more.
Provides the function batchedAtomic
which is like
Deno.Kv.prototype.atomic
but will work around the per atomic
transaction limits imposed by Deno KV.
It also supports setBlob()
and checkBlob()
to allow setting of checking
of kv-toolbox blob values as part of a transaction.
In the past, Deno KV had very low limits (like 10 mutations per transaction)
but those limits have been changed to far more reasonable levels, so in most
cases batchedAtomic
is not needed. The only advantage is that
you can make arbitrarily large atomic transactions and not worry about
having to deal with a limit failure in code. But most users should consider
just dealing with Deno.Kv.prototype.atomic
directly.
Similar to Deno.Kv.prototype.atomic
but deals with the limits of
transactions imposed by Deno KV.
Options which can be adjusted when using a batched atomic.
Add Package
deno add jsr:@kitsonk/kv-toolbox
Import symbol
import * as mod from "@kitsonk/kv-toolbox/batched_atomic";
Import directly with a jsr specifier
import * as mod from "jsr:@kitsonk/kv-toolbox/batched_atomic";
Add Package
pnpm i jsr:@kitsonk/kv-toolbox
pnpm dlx jsr add @kitsonk/kv-toolbox
Import symbol
import * as mod from "@kitsonk/kv-toolbox/batched_atomic";
Add Package
yarn add jsr:@kitsonk/kv-toolbox
yarn dlx jsr add @kitsonk/kv-toolbox
Import symbol
import * as mod from "@kitsonk/kv-toolbox/batched_atomic";
Add Package
vlt install jsr:@kitsonk/kv-toolbox
Import symbol
import * as mod from "@kitsonk/kv-toolbox/batched_atomic";
Add Package
npx jsr add @kitsonk/kv-toolbox
Import symbol
import * as mod from "@kitsonk/kv-toolbox/batched_atomic";
Add Package
bunx jsr add @kitsonk/kv-toolbox
Import symbol
import * as mod from "@kitsonk/kv-toolbox/batched_atomic";