overleaf/services/spelling/app/coffee/MongoCache.coffee

8 lines
122 B
CoffeeScript
Raw Normal View History

2015-03-03 09:28:47 -05:00
LRU = require("lru-cache")
cacheOpts =
max: 5000
maxAge: 1000 * 60 * 60
cache = LRU(cacheOpts)
module.exports = cache