How to use the memdown.clearGlobalStore function in memdown

To help you get started, we’ve selected a few memdown examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mcollina / mosca / lib / persistence / memory.js View on Github external
MemoryPersistence.prototype.close = function(cb) {

  MemDOWN.clearGlobalStore();

  this._streams.forEach(function(stream) {
    stream.destroy();
  });
  this.db.close(cb);
};

memdown

An drop-in replacement for LevelDOWN that works in memory only

MIT
Latest version published 4 years ago

Package Health Score

56 / 100
Full package analysis