MCPcopy Create free account
hub / github.com/BingyanStudio/github-analyzer / saveSession

Method saveSession

api/src/services/sessionStore.ts:16–19  ·  view source on GitHub ↗

* Save session data to Redis * @param sessionId The session ID * @param session Session data * @returns Promise that resolves when the session is saved

(sessionId: string, session: UserSession)

Source from the content-addressed store, hash-verified

14 * @returns Promise that resolves when the session is saved
15 */
16 async saveSession(sessionId: string, session: UserSession): Promise<void> {
17 await redis.set(`session:${sessionId}`, JSON.stringify(session));
18 await redis.expire(`session:${sessionId}`, SESSION_TTL);
19 }
20
21 /**
22 * Get session data from Redis

Callers 2

updateSessionMethod · 0.95
handleGithubAuthFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected