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

x/eta/src/storage.ts>Cacher

Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
Go to Latest
class Cacher
import { Cacher } from "https://deno.land/x/eta@v3.2.0/src/storage.ts";

Handles storage and accessing of values

In this case, we use it to store compiled template functions Indexed by their name or filename

Constructors

new
Cacher(cache: Record<string, T>)

Methods

define(key: string, val: T): void
get(key: string): T
load(cacheObj: Record<string, T>): void
remove(key: string): void
reset(): void