* Reads value for a key from the session datastore and removes it simultaneously * * @param key - The key to pull * @param defaultValue - Default value to return if key doesn't exist * * @example * const message = session.pull('notification', 'No messages') * // message contains
(key: string, defaultValue?: any)
| 361 | * // message contains the value, and it's removed from session |
| 362 | */ |
| 363 | pull(key: string, defaultValue?: any) { |
| 364 | return this.#getValuesStore('write').pull(key, defaultValue) |
| 365 | } |
| 366 | |
| 367 | /** |
| 368 | * Increments the value of a key inside the session store. |
no test coverage detected