Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kv_cron/mod.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/mod.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.