We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c68415c commit bfb1dc0Copy full SHA for bfb1dc0
doc/api/globals.md
@@ -319,7 +319,7 @@ within each turn of the Node.js event loop.
319
// before any other promise jobs.
320
321
DataHandler.prototype.load = async function load(key) {
322
- const hit = this._cache.get(url);
+ const hit = this._cache.get(key);
323
if (hit !== undefined) {
324
queueMicrotask(() => {
325
this.emit('load', hit);
@@ -328,7 +328,7 @@ DataHandler.prototype.load = async function load(key) {
328
}
329
330
const data = await fetchData(key);
331
- this._cache.set(url, data);
+ this._cache.set(key, data);
332
this.emit('load', data);
333
};
334
```
0 commit comments