(sessionKey, session)
| 2699 | } else { |
| 2700 | SessionCache = class SimpleSessionCache { |
| 2701 | constructor(maxCachedSessions) { |
| 2702 | this._maxCachedSessions = maxCachedSessions; |
| 2703 | this._sessionCache = /* @__PURE__ */ new Map(); |
| 2704 | } |
| 2705 | get(sessionKey) { |
| 2706 | return this._sessionCache.get(sessionKey); |
| 2707 | } |
| 2708 | set(sessionKey, session) { |
| 2709 | if (this._maxCachedSessions === 0) { |
| 2710 | return; |
| 2711 | } |
| 2712 | if (this._sessionCache.size >= this._maxCachedSessions) { |
| 2713 | const { value: oldestKey } = this._sessionCache.keys().next(); |