Skip to main content
Module

x/hono/middleware.ts>cache

Web Framework built on Web Standards
Extremely Popular
Go to Latest
variable cache
import { cache } from "https://deno.land/x/hono@v4.3.7/middleware.ts";

type

(options: { cacheName: string | ((c: Context) => Promise<string> | string); wait?: boolean; cacheControl?: string; vary?: string | string[]; keyGenerator?: (c: Context) => Promise<string> | string; }) => MiddlewareHandler