Skip to content

Commit

Permalink
Fixes issue 3rd-Eden#171
Browse files Browse the repository at this point in the history
  • Loading branch information
hernanc committed Jul 24, 2021
1 parent 4c3ee79 commit 20a3bdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ exports.parse = function parse(userAgent, jsAgent) {
* @api public
*/
var lruCache = require('lru-cache');
var LRU = new lruCache(5000);
var options = {max: 5000}
var LRU = new lruCache(options);
exports.lookup = function lookup(userAgent, jsAgent) {
var key = (userAgent || '')+(jsAgent || '')
, cached = LRU.get(key);
Expand Down

0 comments on commit 20a3bdc

Please sign in to comment.