Skip to content

Commit

Permalink
fix: lru-cache import
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed Apr 23, 2023
1 parent 34d5cb8 commit 955fb18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cache.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import LRU from 'lru-cache'
import { LRUCache } from 'lru-cache'
import type { ImageCacheItem } from './types'

export const bufferCache = new LRU<string, ImageCacheItem>({
export const bufferCache = new LRUCache<string, ImageCacheItem>({
max: 500,
})

export const contentCache = new LRU<string, string>({
export const contentCache = new LRUCache<string, string>({
max: 500,
})

0 comments on commit 955fb18

Please sign in to comment.