Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Cache

Hierarchy

  • Cache

Constructors

constructor

Properties

Private cacheId

cacheId: string = `-${randomBytes(8).toString(`hex`)}.tmp`

To ensure different instances of Cache doesn't end up copying to the same temporary file this random ID is appended to the filename.

cacheKey

cacheKey: string

check

check: boolean

configuration

configuration: Configuration

cwd

immutable

immutable: boolean

markedFiles

markedFiles: Set<PortablePath> = new Set()

Private mutexes

mutexes: Map<LocatorHash, Promise<keyof []>> = new Map()

Accessors

mirrorCwd

  • get mirrorCwd(): null | string & object

Methods

fetchPackageFromCache

  • fetchPackageFromCache(locator: Locator, expectedChecksum: string | null, __namedParameters: object): Promise<[]>

getChecksumFilename

  • getChecksumFilename(locator: Locator, checksum: string): string & object

getLocatorMirrorPath

  • getLocatorMirrorPath(locator: Locator): null | string & object

getLocatorPath

  • getLocatorPath(locator: Locator, expectedChecksum: string | null, opts?: CacheOptions): null | string & object

getVersionFilename

  • getVersionFilename(locator: Locator): string & object

setup

  • setup(): Promise<void>

Static find

Generated using TypeDoc