* Increments the value of a key inside the session store. * A new key will be defined if it doesn't exist already with value 1. * * @param key - The key to increment * @param steps - Number of steps to increment (default: 1) * * @example * session.increment('page_views') //
(key: string, steps: number = 1)
| 365 | * session.increment('score', 10) // Increments by 10 |
| 366 | */ |
| 367 | increment(key: string, steps: number = 1) { |
| 368 | return this.#getValuesStore('write').increment(key, steps) |
| 369 | } |
| 370 | |
| 371 | /** |
| 372 | * Decrements the value of a key inside the session store. |
no test coverage detected