This package is available since Fedify 1.9.0.
Warning
This package is deprecated since Fedify 2.5.0.
Deno's team is joining Cloudflare, and Deno KV was built
primarily for Deno Deploy, which is shutting down. Fedify keeps supporting
@fedify/denokv throughout the 2.x series, but the package will be removed
in Fedify 3.0.0. Use @fedify/sqlite for local or single-node deployments,
or @fedify/postgres, @fedify/redis, @fedify/mysql, or
@fedify/cfworkers for production deployments. See #1336 for the
removal plan.
This package provides Fedify's KvStore and MessageQueue
implementations for Deno runtime that uses Deno's built-in Deno.openKv()
API:
import { createFederation } from "@fedify/fedify";
import { DenoKvStore, DenoKvMessageQueue } from "@fedify/denokv";
const kv = await Deno.openKv();
const federation = createFederation({
kv: new DenoKvStore(kv),
queue: new DenoKvMessageQueue(kv),
// ... other options
});DenoKvStore is a key–value store implementation for Deno runtime that uses
Deno's built-in Deno.openKv() API. It provides persistent storage and good
performance for Deno environments. It can be used in existing Deno
applications, but it is not recommended for new projects.
DenoKvMessageQueue is a message queue implementation for Deno runtime that
uses Deno's built-in Deno.openKv() API. It provides persistent storage and
good performance for Deno environments. It can be used in existing Deno
applications, but it is not recommended for new projects.
deno add jsr:@fedify/denokv # Deno