Purge cache
This commit is contained in:
parent
4f582c3279
commit
f22e784ee1
1 changed files with 12 additions and 2 deletions
|
|
@ -54,4 +54,10 @@ export class FixedSizeDocumentCache {
|
|||
this.currentSizeInBytes -= lruEntry.byteLength;
|
||||
}
|
||||
}
|
||||
|
||||
public clear(): void {
|
||||
this.cache.clear();
|
||||
this.usageOrder = [];
|
||||
this.currentSizeInBytes = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue