Skip to main content
Module

x/deno_cache/mod.ts>Loader

Deno CLI's module cache
Go to Latest
interface Loader
import { type Loader } from "https://deno.land/x/deno_cache@0.6.2/mod.ts";

Methods

optional
cacheInfo(specifier: string): CacheInfo

A function that can be passed to a deno_graph building function to provide information about the cache to populate the output.

load(
specifier: string,
_isDynamic?: boolean,
cacheSetting?: CacheSetting,
): Promise<LoadResponse | undefined>

A function that can be passed to a deno_graph that will load and cache dependencies in the graph in the disk cache.