MCPcopy Index your code
hub / github.com/angular/examples / get

Method get

genkit-angular-story-generator/src/flows.ts:311–317  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

309const sessionStore: { [key: string]: SessionData } = {};
310class JsonSessionStore<S = any> implements SessionStore<S> {
311 async get(sessionId: string): Promise<SessionData<S> | undefined> {
312 if (sessionId in sessionStore)
313 return sessionStore[sessionId];
314 else {
315 return undefined;
316 }
317 }
318
319 async save(sessionId: string, sessionData: SessionData<S>): Promise<void> {
320 sessionStore[sessionId] = sessionData;

Callers 3

server.tsFile · 0.80
server.tsFile · 0.80
ngOnInitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected