Skip to content

Commit 3899d2c

Browse files
committed
chore: fix bug
1 parent d3acee7 commit 3899d2c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎libraries/cache/src/DoonceFIFOCache.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class DoonceFIFOCache<K, V> extends Map<K, V> {
2626
key?: (...args: Parameters<T>) => string,
2727
size: number = 10
2828
) => {
29-
const _cache = new FIFOCache<string, ReturnType<T>>(size)
29+
const _cache = new DoonceFIFOCache<string, ReturnType<T>>(size)
3030

3131
const wrappedFn = (...args: Parameters<T>): ReturnType<T> => {
3232
const _key = typeof key === 'function' ? key(...args) : `${JSON.stringify(args)}`

‎libraries/cache/src/DoonceLRUCache.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class DoonceLRUCache<K, V> extends Map<K, V> {
5151
key?: (...args: Parameters<T>) => string,
5252
capacity: number = 10
5353
) => {
54-
const _cache = new LRUCache<string, ReturnType<T>>(capacity)
54+
const _cache = new DoonceLRUCache<string, ReturnType<T>>(capacity)
5555

5656
const wrappedFn = (...args: Parameters<T>): ReturnType<T> => {
5757
const _key = typeof key === 'function' ? key(...args) : `${JSON.stringify(args)}`

0 commit comments

Comments
 (0)