redis: set ttl

This commit is contained in:
Jan Prochazka
2022-03-10 17:12:21 +01:00
parent 98a9859216
commit 3d72df424f
8 changed files with 235 additions and 33 deletions

View File

@@ -181,6 +181,16 @@ module.exports = {
return res.result || null;
},
callMethod_meta: true,
async callMethod({ conid, database, method, args }) {
const opened = await this.ensureOpened(conid, database);
const res = await this.sendRequest(opened, { msgtype: 'callMethod', method, args });
if (res.errorMessage) {
console.error(res.errorMessage);
}
return res.result || null;
},
updateCollection_meta: true,
async updateCollection({ conid, database, changeSet }) {
const opened = await this.ensureOpened(conid, database);