* 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)
| 308 | * } |
| 309 | */ |
| 310 | has(key: string): boolean { |
| 311 | return this.#getValuesStore('read').has(key) |
| 312 | } |
| 313 | |
| 314 | /** |
| 315 | * Gets the value of a key from the session datastore. |
no test coverage detected