Socket
Book a DemoInstallSign in
Socket

express-redis-cache2

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-redis-cache2 - npm Package Compare versions

Comparing version

to
2.0.0-beta6

4

CHANGELOG.md
CHANGE LOG
==========
# 2.0.0-beta6
This release removes deprecated `expressRedisCache` and `expressRedisCacheName`.
# 2.0.0-beta5

@@ -5,0 +9,0 @@

28

lib/ExpressRedisCache/route.js

@@ -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
[![npm](https://img.shields.io/npm/v/express-redis-cache2.svg)](https://www.npmjs.com/package/express-redis-cache2)
[![Build status](https://gitlab.com/demsking/express-redis-cache2/badges/master/pipeline.svg)](https://gitlab.com/demsking/express-redis-cache2/pipelines)
[![Test coverage](https://gitlab.com/demsking/express-redis-cache2/badges/master/coverage.svg)](https://gitlab.com/demsking/express-redis-cache2/pipelines)
[![Build status](https://gitlab.com/demsking/express-redis-cache2/badges/main/pipeline.svg)](https://gitlab.com/demsking/express-redis-cache2/pipelines)
[![Test coverage](https://gitlab.com/demsking/express-redis-cache2/badges/main/coverage.svg)](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