clear federatedInstanceCache when meta host lists change

This commit is contained in:
Hazelnoot 2025-05-25 12:16:34 -04:00
parent 3e7ab07b3c
commit 7385f30903
3 changed files with 56 additions and 26 deletions

View file

@ -308,8 +308,17 @@ export class MemoryKVCache<T> {
}
}
/**
* Removes all entries from the cache, but does not dispose it.
*/
@bindThis
public clear(): void {
this.cache.clear();
}
@bindThis
public dispose(): void {
this.clear();
clearInterval(this.gcIntervalHandle);
}