(sessionCookie: string)
| 175 | * Invalidate session cache for a specific cookie (e.g., on logout) |
| 176 | */ |
| 177 | export function invalidateSessionCache(sessionCookie: string): void { |
| 178 | const cacheKey = hashSessionCookie(sessionCookie); |
| 179 | sessionCache.delete(cacheKey); |
| 180 | deadSessionCache.delete(cacheKey); |
| 181 | logger.debug({ cacheKey }, 'Session cache invalidated'); |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * Invalidate ban cache for a specific entity (e.g., after creating or removing a ban). |
no test coverage detected