Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
jajbshjahavahh
GitHub Repository: jajbshjahavahh/Gojo-Satoru
Path: blob/master/lib/lowdb/adapters/Memory.js
2591 views
1
//═══════════════════════════════════════════════════════//
2
//If you want to recode, reupload
3
//or copy the codes/script,
4
//pls give credit
5
//no credit? i will take action immediately
6
//© 2022 Xeon Bot Inc. Cheems Bot MD
7
//Thank you to Lord Buddha, Family and Myself
8
//════════════════════════════//
9
class Memory {
10
constructor() {
11
this.data = null;
12
}
13
read() {
14
return Promise.resolve(this.data);
15
}
16
write(obj) {
17
this.data = obj;
18
return Promise.resolve();
19
}
20
}
21
module.exports = { Memory };
22
23