overleaf/services/spelling/app/js/MongoCache.js

12 lines
267 B
JavaScript
Raw Normal View History

2019-07-03 08:41:01 -04:00
// TODO: This file was created by bulk-decaffeinate.
// Sanity-check the conversion and remove this comment.
const LRU = require('lru-cache')
const cacheOpts = {
max: 15000,
2021-07-13 07:04:47 -04:00
maxAge: 1000 * 60 * 60 * 10,
2019-07-03 08:41:01 -04:00
}
const cache = new LRU(cacheOpts)
2019-07-03 08:41:01 -04:00
module.exports = cache