Files
NodeBB/src/cache.js
Julian Lam 9b753d6d57 TTL Cache (#10816)
* refactor: move src/cacheCreate.js to src/cache/lru.js

* fix: call new library location for lru cache creator

* feat: add ttl cache

* fix: update upload throttler to use ttl cache instead of lru cache

* chore: add missing dependency

* fix: avoid pubsub conflicts

* fix: use get instead of peek, which is not available in ttl-cache
2022-08-10 15:26:07 -04:00

10 lines
133 B
JavaScript

'use strict';
const cacheCreate = require('./cache/lru');
module.exports = cacheCreate({
name: 'local',
max: 40000,
ttl: 0,
});