import { type CacheOptions } from "https://dotland.deno.dev/x/deno_cache@0.7.1/mod.ts";
Properties
Allow remote URLs to be fetched if missing from the cache. This defaults
to true
. Setting it to false
is like passing the --no-remote
in the
Deno CLI, meaning that any modules not in cache error.
optional
cacheSetting: CacheSettingDetermines how the cache will be used. The default value is "use"
meaning the cache will be used, and any remote module cache misses will
be fetched and stored in the cache.
This forces the cache into a readOnly
mode, where fetched resources
will not be stored on disk if true
. The default is detected from the
environment, checking to see if Deno.writeFile
exists.