This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/lowdb/lib/adapters/Memory.js
T

20 lines
337 B
JavaScript

export class Memory {
#data = null;
read() {
return Promise.resolve(this.#data);
}
write(obj) {
this.#data = obj;
return Promise.resolve();
}
}
export class MemorySync {
#data = null;
read() {
return this.#data || null;
}
write(obj) {
this.#data = obj;
}
}