* 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)
| 350 | * // message contains the value, and it's removed from session |
| 351 | */ |
| 352 | pull(key: string, defaultValue?: any) { |
| 353 | return this.#getValuesStore('write').pull(key, defaultValue) |
| 354 | } |
| 355 | |
| 356 | /** |
| 357 | * Increments the value of a key inside the session store. |
no test coverage detected