Skip to main content
function kvMemoize
import { kvMemoize } from "https://deno.land/x/kv_memoize@v0.1.0/mod.ts";

Returns a function that caches the result of the given function in the Deno.Kv store.

Parameters

key: K
fn: (...args: A) => Promise<R>
optional
options: KvMemoizeOptions<K, A, R>

Returns

(...args: A) => Promise<R>