api/store: implement has() method
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user