* Gets the value of a key from the session datastore. * You can specify a default value to use when key does not exist or has undefined value. * * @param key - The key to retrieve * @param defaultValue - Default value to return if key doesn't exist * * @example * const username
(key: string, defaultValue?: any)
| 323 | * const preferences = session.get('user.preferences', {}) |
| 324 | */ |
| 325 | get(key: string, defaultValue?: any) { |
| 326 | return this.#getValuesStore('read').get(key, defaultValue) |
| 327 | } |
| 328 | |
| 329 | /** |
| 330 | * Gets everything from the session store |
no test coverage detected