Settings as clean architecture
This commit is contained in:
parent
0652131de8
commit
89c28d67fd
11 changed files with 176 additions and 33 deletions
11
src/background/infrastructures/memory-storage.js
Normal file
11
src/background/infrastructures/memory-storage.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
const db = {};
|
||||
|
||||
export default class MemoryStorage {
|
||||
set(name, value) {
|
||||
db[name] = value;
|
||||
}
|
||||
|
||||
get(name) {
|
||||
return db[name];
|
||||
}
|
||||
}
|
Reference in a new issue