Make repository less of a store

This commit is contained in:
Jon Staab
2024-05-27 15:21:12 -07:00
parent ff2480e9d9
commit d332b47403
3 changed files with 14 additions and 87 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ export class LRUCache<T, U> {
map = new Map<T, U>()
keys: T[] = []
constructor(readonly maxSize: number) {}
constructor(readonly maxSize: number = Infinity) {}
has(k: T) {
return this.map.has(k)