new Cache(): CacheClassReturns:
{CacheClass}
Initializes the cache lifecycle hooks implemented by cache backends.
Attributes
beginIdle(): voidReturns:
{void}
Signals that webpack is entering an idle phase and cache backends may flush or compact pending work.
endIdle(callback): voidcallback{CallbackCacheCache} - Returns: {void}
Signals that webpack is leaving the idle phase and waits for cache backends to finish any asynchronous resume work.
M
get
get(identifier, etag, callback): voidAttributes
Returns:
{void}
Retrieves a cached value and lets registered gotHandlers observe the
result before the caller receives it.
shutdown(callback): voidcallback{CallbackCacheCache} - Returns: {void}
Shuts down every registered cache backend and waits for cleanup to finish.
store(identifier, etag, data, callback): voidAttributes
Returns:
{void}
Stores a cache entry for the identifier and etag through the registered cache backend hooks.
storeBuildDependencies(dependencies, callback): voiddependencies{Iterable} callback{CallbackCacheCache} - Returns: {void}
Persists the set of build dependencies required to determine whether the cache can be restored in a future compilation.