Skip to main content
Module

x/cicada/mod.ts>CacheDirectoryOptions

Write CI/CD pipelines using TypeScript
Latest
interface CacheDirectoryOptions
import { type CacheDirectoryOptions } from "https://deno.land/x/cicada@v0.1.50/mod.ts";

Options for a cached directory

Examples

Example 1

const cacheDir: CacheDirectoryOptions = {
  path: "node_modules"
  sharing: "private"
}

Properties

path: FilePath

The path to the directory to cache

optional
sharing: "shared" | "private" | "locked"

Directories default to shared

  • shared - can be used concurrently by multiple writers
  • private - creates a new cache if there are multiple writers
  • locked - pauses the second writer until the first one releases the cache