So. MUCH. override

This commit is contained in:
Jordi Bunster
2021-05-06 00:49:03 -07:00
parent db227084be
commit 9ba434a1ac
107 changed files with 3127 additions and 1301 deletions

View File

@@ -3,11 +3,11 @@ export class ObjectCache<T> extends Map<string, T> {
super();
}
public get(key: string): T | undefined {
public override get(key: string): T | undefined {
return this.touch(key);
}
public set(key: string, value: T): this {
public override set(key: string, value: T): this {
if (this.size === this.limit) {
this.delete(this.keys().next().value);
}