Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/next_php/src/deps.ts>ejs.Cache

NextPHP is a web framework enabling you to write PHP in JavaScript.
Latest
interface ejs.Cache
import { type ejs } from "https://deno.land/x/next_php@1.1.2/src/deps.ts";
const { Cache } = ejs;

Methods

set(key: string, val: TemplateFunction): void

Cache the intermediate JavaScript function for a template.

get(key: string): TemplateFunction | undefined

Get the cached intermediate JavaScript function for a template.

reset(): void

Clear the entire cache.