UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

19 lines (18 loc) 358 B
export class InMemoryStorage { store; constructor(store = {}) { this.store = store; } getItem(key) { if (key in this.store) { return this.store[key]; } return null; } removeItem(key) { delete this.store[key]; } setItem(key, value) { this.store[key] = value; } }