@unilogin/sdk
Version:
SDK is a JS library, that communicates with relayer. SDK allows managing contract, by creating basic contract-calling messages.
20 lines • 694 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var MemoryStorageService = /** @class */ (function () {
function MemoryStorageService() {
this.store = {};
}
MemoryStorageService.prototype.get = function (key) {
var val = this.store[key];
return val !== undefined ? val : null;
};
MemoryStorageService.prototype.set = function (key, value) {
this.store[key] = value;
};
MemoryStorageService.prototype.remove = function (key) {
delete this.store[key];
};
return MemoryStorageService;
}());
exports.MemoryStorageService = MemoryStorageService;
//# sourceMappingURL=MemoryStorageService.js.map
;