Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kv_cron/kv_cron.ts>KvCronOptions

Use Deno Kv API to register cronjobs.
Latest
interface KvCronOptions
import { type KvCronOptions } from "https://deno.land/x/kv_cron@0.0.2/kv_cron.ts";

KvCronOptions defines the options for creating a cron job manager.

Properties

kv is the Deno.Kv store to use for the cron job manager.

optional
kvKeyPrefix: Deno.KvKey

kvKeyPrefix is the prefix of the keys used by the cron job manager.

jobs: T

jobs is a map of cron job names to cron job handlers.

optional
generateNonce: () => string

generateNonce is a function that generates a random nonce.