const cache = new Map();
const TTL_MS = 60_000;
export function getConventionsCache(projectPath) {
    const entry = cache.get(projectPath);
    if (!entry || Date.now() > entry.expiresAt) {
        cache.delete(projectPath);
        return null;
    }
    return entry.value;
}
export function setConventionsCache(projectPath, value) {
    cache.set(projectPath, { value, expiresAt: Date.now() + TTL_MS });
}
export function invalidateConventionsCache(projectPath) {
    cache.delete(projectPath);
}
export function clearConventionsCache() {
    cache.clear();
}
//# sourceMappingURL=conventions-cache.js.map