Constructors
constructor
- new Cache(): Cache
-
Properties
hooks
hooks: { beginIdle: SyncHook<[], void, UnsetAdditionalOptions>; endIdle: AsyncParallelHook<[], UnsetAdditionalOptions>; get: AsyncSeriesBailHook<[string, null | Etag, ((result,
callback) => void)[]], any, UnsetAdditionalOptions>; shutdown: AsyncParallelHook<[], UnsetAdditionalOptions>; store: AsyncParallelHook<[string, null | Etag, any], UnsetAdditionalOptions>; storeBuildDependencies: AsyncParallelHook<[Iterable<string>], UnsetAdditionalOptions>; }
Static
STAGE_DEFAULT
STAGE_DEFAULT: number
Static
STAGE_DISK
STAGE_DISK: number
Static
STAGE_MEMORY
STAGE_MEMORY: number
Static
STAGE_NETWORK
STAGE_NETWORK: number
Methods
beginIdle
- beginIdle(): void
-
Returns void
endIdle
- endIdle(callback): void
-
Returns void
get
- get<T>(identifier, etag, callback): void
-
Parameters
-
identifier: string
-
etag: null | Etag
-
Returns void
shutdown
- shutdown(callback): void
-
Returns void
store
- store<T>(identifier, etag, data, callback): void
-
Parameters
-
identifier: string
-
etag: null | Etag
-
data: T
-
Returns void
storeBuildDependencies
- storeBuildDependencies(dependencies, callback): void
-
Returns void
After this method has succeeded the cache can only be restored when build dependencies are