MCPcopy Create free account
hub / github.com/angular/dev-infra / set

Method set

github-actions/saucelabs/set-saucelabs-env.js:2701–2710  ·  view source on GitHub ↗
(sessionKey, session)

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 4

nextMethod · 0.45
keysMethod · 0.45
deleteMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected