express-redis-cache2
Advanced tools
Comparing version
CHANGE LOG | ||
========== | ||
# 2.0.0-beta6 | ||
This release removes deprecated `expressRedisCache` and `expressRedisCacheName`. | ||
# 2.0.0-beta5 | ||
@@ -5,0 +9,0 @@ |
@@ -61,15 +61,2 @@ module.exports = (function () { | ||
middleware = function expressRedisCache_Middleware (req, res, next) { | ||
if ( res.expressRedisCache ) { | ||
self.emit('deprecated', { | ||
deprecated: 'expressRedisCache', | ||
substitute: 'use_express_redis_cache', | ||
file: __fileName, | ||
line: __line | ||
}); | ||
res.use_express_redis_cache = res.expressRedisCache; | ||
} | ||
// If cache is disabled, call next() | ||
@@ -96,17 +83,2 @@ if ( res.use_express_redis_cache === false ) { | ||
/** | ||
* @deprecated `res.expressRedisCacheName` is deprecated starting on v0.1.1, `use res.express_redis_cache_name` instead | ||
*/ | ||
if ( res.expressRedisCacheName ) { | ||
self.emit('deprecated', { | ||
deprecated: 'expressRedisCacheName', | ||
substitute: 'express_redis_cache_name', | ||
file: __fileName, | ||
line: __line | ||
}); | ||
res.express_redis_cache_name = res.expressRedisCacheName; | ||
} | ||
// If a cache has been explicitly attached to `res` then use it as name | ||
@@ -113,0 +85,0 @@ |
{ | ||
"name": "express-redis-cache2", | ||
"version": "2.0.0-beta5", | ||
"version": "2.0.0-beta6", | ||
"description": "A module to make Express interact with Redis (create, get, delete). You can automatically cache all your most popular routes in Redis.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# Express Redis Cache 2 | ||
[](https://www.npmjs.com/package/express-redis-cache2) | ||
[](https://gitlab.com/demsking/express-redis-cache2/pipelines) | ||
[](https://gitlab.com/demsking/express-redis-cache2/pipelines) | ||
[](https://gitlab.com/demsking/express-redis-cache2/pipelines) | ||
[](https://gitlab.com/demsking/express-redis-cache2/pipelines) | ||
@@ -320,3 +320,3 @@ Easily cache pages of your app using Express and Redis. *Could be used without | ||
The module exposes a function which instantiates a new instance of a class | ||
called [ExpressRedisCache](../master/index.js). | ||
called [ExpressRedisCache](https://gitlab.com/demsking/express-redis-cache2/blob/main/index.js). | ||
@@ -323,0 +323,0 @@ ```js |
42280
-1.53%719
-2.84%