Skip to content

Commit 3bf4514

Browse files
committed
Release version 2.1.0
1 parent 40b0f8e commit 3bf4514

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v2.1.0 - 4 Jul, 2020
4+
5+
Added support for using an external Redis instance using the new `redisInstance` parameter. Special thanks to [@marcoreni](https://github.com/marcoreni)!
6+
37
## v2.0.0 - 13 Feb, 2020
48

59
Removes all Babel related configuration and updates all outdated dependencies. Updating Jest from v20 to v25 revealed that not all tests that asserted a promise rejecting were succeeding as expected. This resulted in the breaking change mentioned below.

dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ const Redis = require('ioredis');
55
const redisStore = (...args) => {
66
let redisCache = null;
77

8-
if (args.length > 0 && args[0].clusterConfig) {
8+
if (args.length > 0 && args[0].redisInstance) {
9+
redisCache = args[0].redisInstance;
10+
} else if (args.length > 0 && args[0].clusterConfig) {
911
const {
1012
nodes,
1113
options

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cache-manager-ioredis",
33
"author": "Matthijs Dabroek <dabroek@gmail.com>",
44
"description": "IORedis store for node-cache-manager",
5-
"version": "2.0.0",
5+
"version": "2.1.0",
66
"license": "MIT",
77
"main": "dist/index.js",
88
"repository": {

0 commit comments

Comments
 (0)