Skip to main content
This release is 14 versions behind 1.3.3 — the latest version of @fedify/fedify. Jump to latest

Built and signed on GitHub Actions

An ActivityPub/fediverse server framework

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
3 months ago (1.2.0)
interface KvCacheParameters

The parameters for kvCache function.

Properties

The document loader to decorate with a cache.

kv: KvStore

The key-value store to use for backing the cache.

optional
prefix: KvKey

The key prefix to use for namespacing the cache. ["_fedify", "remoteDocument"] by default.

The per-URL cache rules in the array of [urlPattern, duration] pairs where urlPattern is either a string, a URL, or a URLPattern and duration is a Temporal.Duration. The duration is allowed to be at most 30 days.

By default, 5 minutes for all URLs.

Add Package

deno add jsr:@fedify/fedify

Import symbol

import { type KvCacheParameters } from "@fedify/fedify/runtime";

---- OR ----

Import directly with a jsr specifier

import { type KvCacheParameters } from "jsr:@fedify/fedify/runtime";

Add Package

npx jsr add @fedify/fedify

Import symbol

import { type KvCacheParameters } from "@fedify/fedify/runtime";

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

import { type KvCacheParameters } from "@fedify/fedify/runtime";

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

import { type KvCacheParameters } from "@fedify/fedify/runtime";

Add Package

bunx jsr add @fedify/fedify

Import symbol

import { type KvCacheParameters } from "@fedify/fedify/runtime";