(sessionId: string)
| 144 | } |
| 145 | |
| 146 | export function invalidateSessionPathCache(sessionId: string): void { |
| 147 | const pathCache = getPathCache(); |
| 148 | const reverseCache = getPathToIdCache(); |
| 149 | const filePath = pathCache.get(sessionId); |
| 150 | pathCache.delete(sessionId); |
| 151 | if (filePath && reverseCache.get(filePath) === sessionId) { |
| 152 | reverseCache.delete(filePath); |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | export function readSessionHeader(filePath: string): SessionHeader | null { |
| 157 | const fd = openSync(filePath, "r"); |
no test coverage detected