11 lines
305 B
TypeScript
11 lines
305 B
TypeScript
export type GameSessionData = { answers: Map<string, number> };
|
|
|
|
export interface GameSessionStore {
|
|
create(
|
|
sessionId: string,
|
|
data: GameSessionData,
|
|
ttlMs: number,
|
|
): Promise<void>;
|
|
get(sessionId: string): Promise<GameSessionData | null>;
|
|
delete(sessionId: string): Promise<void>;
|
|
}
|