MCPcopy
hub / github.com/webpack/webpack / store

Method store

lib/Cache.js:129–136  ·  lib/Cache.js::Cache.store

* Stores a cache entry for the identifier and etag through the registered * cache backend hooks. * @template T * @param {string} identifier the cache identifier * @param {Etag | null} etag the etag * @param {T} data the value to store * @param {CallbackCache<void>} callback signals when

(identifier, etag, data, callback)

Source from the content-addressed store, hash-verified

127 * @returns {void}
128 */
129 store(identifier, etag, data, callback) {
130 this.hooks.store.callAsync(
131 identifier,
132 etag,
133 data,
134 makeWebpackErrorCallback(callback, class="st">"Cache.hooks.store")
135 );
136 }
137
138 /**
139 * Persists the set of build dependencies required to determine whether the

Callers 4

_buildModuleMethod · 0.45
createChunkAssetsMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45

Calls 1

makeWebpackErrorCallbackFunction · 0.85

Tested by

no test coverage detected