Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Cache

Hierarchy

  • Cache

Constructors

constructor

Properties

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 [PortablePath, string]>> = new Map()

Accessors

mirrorCwd

  • get mirrorCwd(): null | string & object

Methods

fetchPackageFromCache

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

getChecksumFilename

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

getLocatorMirrorPath

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

getLocatorPath

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

getVersionFilename

  • getVersionFilename(locator: Locator): string & object

setup

  • setup(): Promise<void>

Private writeFileWithLock

  • writeFileWithLock<T>(file: PortablePath | null, generator: function): Promise<T>

Static find

Generated using TypeDoc