* Puts a key-value pair to the session data store * * @param key - The key to store the value under * @param value - The value to store * * @example * session.put('username', 'john') * session.put('user.preferences', { theme: 'dark' })
(key: string, value: AllowedSessionValues)
| 294 | * session.put('user.preferences', { theme: 'dark' }) |
| 295 | */ |
| 296 | put(key: string, value: AllowedSessionValues) { |
| 297 | this.#getValuesStore('write').set(key, value) |
| 298 | } |
| 299 | |
| 300 | /** |
| 301 | * Checks if a key exists inside the datastore |