MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / touch

Function touch

packages/hosts/mcp/src/in-memory-session-store.ts:271–273  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

269 options.sessionSweepIntervalMs ?? Math.max(MIN_SWEEP_INTERVAL_MS, Math.floor(idleTtlMs / 4));
270
271 const touch = (id: string): void => {
272 if (lastSeen.has(id)) lastSeen.set(id, Date.now());
273 };
274
275 /** Claim a session for one in-flight request, so the sweep cannot take it. */
276 const beginRequest = (id: string): void => {

Callers 2

endRequestFunction · 0.85
forwardFunction · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected