UNPKG

heapstash

Version:

HeapStash is a library that allows for easy caching in Node.js, with many advanced features such as TTL, maximum items in memory cache, external cache support, and more.

16 lines 334 B
"use strict"; class Plugin { constructor() { this.tasks = {}; } run(name) { const self = this; return function () { if (self.tasks[name]) { return self.tasks[name](...arguments); } }; } } module.exports = Plugin; //# sourceMappingURL=index.js.map