Use SETEX for storing package.json configs

Also, remove option for in-memory cache.
This commit is contained in:
MICHAEL JACKSON
2017-05-25 11:53:47 -07:00
parent f297ba2217
commit 84f297b400
5 changed files with 29 additions and 49 deletions

View File

@ -106,7 +106,6 @@ const defaultServerConfig = {
registryURL: process.env.REGISTRY_URL || 'https://registry.npmjs.org',
redirectTTL: process.env.REDIRECT_TTL || 500,
autoIndex: !process.env.DISABLE_INDEX,
redisURL: process.env.REDIS_URL,
blacklist: require('./package-blacklist').blacklist
}