Skip to content

Commit

Permalink
fix: use lru-cache named export
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Aug 14, 2023
1 parent 0db9bcb commit bdff8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/memoization.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict'

const LRU = require('lru-cache')
const { LRUCache } = require('lru-cache')

const MEMOIZED = new LRU({
const MEMOIZED = new LRUCache({
max: 500,
maxSize: 50 * 1024 * 1024, // 50MB
ttl: 3 * 60 * 1000, // 3 minutes
Expand Down

0 comments on commit bdff8ca

Please sign in to comment.