cache.js 285 B

123456789101112131415
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = function (value, encoder, cache) {
  4. if (cache[value]) {
  5. return;
  6. }
  7. cache[value] = {
  8. ident: encoder(value, Object.keys(cache).length),
  9. count: 0
  10. };
  11. };
  12. module.exports = exports["default"];