- makeFifoCache<Key, Value>(size): {
add: ((key, value) => void);
clear: (() => void);
delete: ((key) => boolean);
get: ((key) => Value | undefined);
size: (() => number);
}
-
Returns {
add: ((key, value) => void);
clear: (() => void);
delete: ((key) => boolean);
get: ((key) => Value | undefined);
size: (() => number);
}
-
add: ((key, value) => void)
-
- (key, value): void
-
Returns void
-
clear: (() => void)
-
delete: ((key) => boolean)
-
- (key): boolean
-
Returns boolean
-
get: ((key) => Value | undefined)
-
- (key): Value | undefined
-
Returns Value | undefined
-
size: (() => number)
-
- (): number
-
Returns number
Creates a cache that evicts keys in fifo order