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

@@ -17,6 +17,12 @@ export default class RedisStore extends Store {
return this.id + '_' + key;
}
async _has(key) {
await this.#connected;
return this.#client.hExists(key);
}
async _get(key) {
await this.#connected;