MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / redisKey

Function redisKey

packages/mcp/src/session-manager.ts:10–12  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

8const SESSION_TTL_SECONDS = 30 * 60; // 30 minutes
9
10function redisKey(id: string) {
11 return `mcp:session:${id}`;
12}
13
14/**
15 * Stateless session manager — auth context lives only in Redis.

Callers 4

setContextMethod · 0.85
getContextMethod · 0.85
touchContextMethod · 0.85
deleteContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected