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

Method touchContext

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

Source from the content-addressed store, hash-verified

40 }
41
42 async touchContext(id: string): Promise<void> {
43 await getRedisCache().expire(redisKey(id), SESSION_TTL_SECONDS);
44 }
45
46 async deleteContext(id: string): Promise<void> {
47 await getRedisCache().del(redisKey(id));

Callers 2

handleMcpPostFunction · 0.80

Calls 2

getRedisCacheFunction · 0.90
redisKeyFunction · 0.85

Tested by

no test coverage detected