This commit is contained in:
Jordi Baylina
2019-10-02 09:34:49 +02:00
parent 5bf52cda57
commit c4ce4cd946
6 changed files with 165 additions and 13 deletions

View File

@@ -27,6 +27,14 @@ class SMTMemDb {
return this.nodes[keyS];
}
async multiGet(keys) {
const promises = [];
for (let i=0; i<keys.length; i++) {
promises.push(this.get(keys[i]));
}
return await Promise.all(promises);
}
async setRoot(rt) {
this.root = rt;
}