* Checks if a key exists inside the datastore * * @param key - The key to check for existence * * @example * if (session.has('username')) { * console.log('User is logged in') * }
(key: string)
| 297 | * } |
| 298 | */ |
| 299 | has(key: string): boolean { |
| 300 | return this.#getValuesStore('read').has(key) |
| 301 | } |
| 302 | |
| 303 | /** |
| 304 | * Gets the value of a key from the session datastore. |
no test coverage detected