UNPKG

mongodb-stitch

Version:

[![Join the chat at https://gitter.im/mongodb/stitch](https://badges.gitter.im/mongodb/stitch.svg)](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

30 lines 1.11 kB
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var MemoryStorage = (function () { function MemoryStorage(suiteName) { this.suiteName = suiteName; this.storage = {}; } MemoryStorage.prototype.get = function (key) { return this.storage[this.suiteName + "." + key]; }; MemoryStorage.prototype.set = function (key, value) { this.storage[this.suiteName + "." + key] = value; }; MemoryStorage.prototype.remove = function (key) { delete this.storage[this.suiteName + "." + key]; }; return MemoryStorage; }()); exports.MemoryStorage = MemoryStorage; }); //# sourceMappingURL=Storage.js.map