overleaf/services/spelling/app/coffee/MongoCache.coffee
2019-01-14 10:10:32 +00:00

8 lines
No EOL
128 B
CoffeeScript

LRU = require("lru-cache")
cacheOpts =
max: 15000
maxAge: 1000 * 60 * 60 * 10
cache = LRU(cacheOpts)
module.exports = cache