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

x/hono/middleware/cache/index.ts>cache

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

type

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