(sid:string)
| 209 | } |
| 210 | |
| 211 | async _destroy(sid:string) { |
| 212 | logger.debug(`DESTROY ${sid}`); |
| 213 | clearTimeout((this._expirations.get(sid) || {}).timeout); |
| 214 | this._expirations.delete(sid); |
| 215 | await DB.remove(`sessionstorage:${sid}`); |
| 216 | } |
| 217 | |
| 218 | // Note: express-session might call touch() before it calls set() for the first time. Ideally this |
| 219 | // would behave like set() in that case but it's OK if it doesn't -- express-session will call |
no test coverage detected