MCPcopy Create free account
hub / github.com/ether/etherpad / _destroy

Method _destroy

src/node/db/SessionStore.ts:211–216  ·  view source on GitHub ↗
(sid:string)

Source from the content-addressed store, hash-verified

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

Callers 1

_updateExpirationsMethod · 0.95

Calls 3

getMethod · 0.80
deleteMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected