api/store: implement has() method

This commit is contained in:
jj
2024-10-30 19:21:45 +00:00
parent 18acad19b9
commit 11314fb8d1
3 changed files with 19 additions and 0 deletions

View File

@@ -14,6 +14,10 @@ export default class MemoryStore extends Store {
super(name);
}
async _has(key) {
return this.#store.has(key);
}
async _get(key) {
const val = this.#store.get(key);