Skip to main content

Cache

Index

Constructors

constructor

Properties

publicreadonlycacheKey

cacheKey: string

publicreadonlycacheSpec

cacheSpec: string

publicreadonlycheck

check: boolean

publicreadonlyconfiguration

configuration: Configuration

publicreadonlycwd

publicreadonlyimmutable

immutable: boolean

publicreadonlymarkedFiles

markedFiles: Set<PortablePath> = ...

Accessors

mirrorCwd

Methods

fetchPackageFromCache

  • fetchPackageFromCache(locator: Locator, expectedChecksum: null | string, __namedParameters: { loader?: () => Promise<ZipFS>; onHit?: () => void; onMiss?: () => void } & CacheOptions): Promise<[FakeFS<PortablePath>, () => void, null | string]>
  • Parameters

    • locator: Locator
    • expectedChecksum: null | string
    • __namedParameters: { loader?: () => Promise<ZipFS>; onHit?: () => void; onMiss?: () => void } & CacheOptions

    Returns Promise<[FakeFS<PortablePath>, () => void, null | string]>

getChecksumFilename

getLocatorMirrorPath

getLocatorPath

getVersionFilename

isChecksumCompatible

  • isChecksumCompatible(checksum: string): boolean
  • Parameters

    • checksum: string

    Returns boolean

setup

  • setup(): Promise<void>
  • Returns Promise<void>

staticfind

  • find(configuration: Configuration, __namedParameters?: { check?: boolean; immutable?: boolean }): Promise<Cache>
  • Parameters

    • configuration: Configuration
    • __namedParameters: { check?: boolean; immutable?: boolean } = {}

    Returns Promise<Cache>

staticgetCacheKey

  • getCacheKey(configuration: Configuration): { cacheKey: string; cacheSpec: string }
  • Parameters

    Returns { cacheKey: string; cacheSpec: string }

    • cacheKey: string
    • cacheSpec: string