* 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
This commit is contained in:
Julian Lam
2022-08-10 15:26:07 -04:00
committed by GitHub
parent c07d595662
commit 9b753d6d57
12 changed files with 248 additions and 150 deletions

View File

@@ -1,7 +1,7 @@
'use strict';
module.exports.create = function (name) {
const cacheCreate = require('../cacheCreate');
const cacheCreate = require('../cache/lru');
return cacheCreate({
name: `${name}-object`,
max: 40000,