const snapshotCache = new Map<string, string>()

export function getCachedStreamSnapshot(key: string): string | null {
    return snapshotCache.get(key) ?? null
}

export function setCachedStreamSnapshot(key: string, dataUrl: string): void {
    snapshotCache.set(key, dataUrl)
}
