Abstract cache interface backed by tapable hooks for reading, writing, idle transitions, and shutdown across webpack cache implementations.
new Cache(): CacheCacheInitializes the cache lifecycle hooks implemented by cache backends.
beginIdle(): voidvoidSignals that webpack is entering an idle phase and cache backends may flush or compact pending work.
endIdle(callback): voidCallbackCacheCache<void>voidSignals that webpack is leaving the idle phase and waits for cache backends to finish any asynchronous resume work.
get
get(identifier, etag, callback): voidstringEtag | nullCallbackCacheCache<T>voidRetrieves a cached value and lets registered gotHandlers observe the
result before the caller receives it.
shutdown(callback): voidCallbackCacheCache<void>voidShuts down every registered cache backend and waits for cleanup to finish.
store(identifier, etag, data, callback): voidstringEtag | nullTCallbackCacheCache<void>voidStores a cache entry for the identifier and etag through the registered cache backend hooks.
storeBuildDependencies(dependencies, callback): voidCallbackCacheCache<void>voidPersists the set of build dependencies required to determine whether the cache can be restored in a future compilation.
Creates a callback wrapper that waits for a fixed number of completions and forwards the first error immediately.
Creates a callback wrapper that waits for a fixed number of completions and forwards the first error immediately.
Creates a callback wrapper that waits for a fixed number of completions and forwards the first error immediately.
Creates a callback wrapper that waits for a fixed number of completions and forwards the first error immediately.