mongodb-stitch
Version:
[](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
18 lines • 593 B
JavaScript
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;
}());
export { MemoryStorage };
//# sourceMappingURL=Storage.js.map