Files
plugin-manager/dist/interfaces.js

17 lines
415 B
JavaScript

/**
* In-memory storage implementation — used as the default when no storage adapter is provided.
*/
export class MemoryStorage {
constructor() {
this.store = new Map();
}
/** @inheritdoc */
getItem(key) {
return this.store.get(key) ?? null;
}
/** @inheritdoc */
setItem(key, value) {
this.store.set(key, value);
}
}
//# sourceMappingURL=interfaces.js.map