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

x/deno_cache/file_fetcher.ts>CacheSetting

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

A setting that determines how the cache is handled for remote dependencies.

The default is "use".

  • "only" - only the cache will be re-used, and any remote modules not in the cache will error.
  • "use" - the cache will be used, meaning existing remote files will not be reloaded.
  • "reloadAll" - any cached modules will be ignored and their values will be fetched.
  • string[] - an array of string specifiers, that if they match the start of the requested specifier, will be reloaded.
definition:
| "only"
| "reloadAll"
| "use"
| string[]