Purge cache

This commit is contained in:
Andras Schmelczer 2025-11-16 21:01:18 +00:00
commit f22e784ee1

View file

@ -54,4 +54,10 @@ export class FixedSizeDocumentCache {
this.currentSizeInBytes -= lruEntry.byteLength;
}
}
public clear(): void {
this.cache.clear();
this.usageOrder = [];
this.currentSizeInBytes = 0;
}
}