Skip to main content
Module

x/deno_cache/mod.ts>Cacher

A TypeScript implementation of Deno CLI's module cache
Extremely Popular
Go to Latest
interface Cacher
import { type Cacher } from "https://deno.land/x/deno_cache@0.4.1/mod.ts";

Methods

get(type: CacheType, specifier: string): Promise<string | undefined>

Retrieve a specific type of cached resource from the disk cache.

set(
type: CacheType,
specifier: string,
value: string,
): Promise<void>

Set a specific type of cached resource to the disk cache.