Socket
Socket
Sign inDemoInstall

cache-manager-redis-store

Package Overview
Dependencies
4
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.0 to 1.5.0

4

dist/index.js

@@ -183,3 +183,5 @@ 'use strict';

},
keys: function keys(pattern, cb) {
keys: function keys() {
var pattern = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '*';
var cb = arguments[1];
return new Promise(function (resolve, reject) {

@@ -186,0 +188,0 @@ if (typeof pattern === 'function') {

@@ -149,3 +149,3 @@ import Redis from 'redis';

),
keys: (pattern, cb) => (
keys: (pattern = '*', cb) => (
new Promise((resolve, reject) => {

@@ -152,0 +152,0 @@ if (typeof pattern === 'function') {

@@ -5,3 +5,3 @@ {

"description": "Redis store for node-cache-manager",
"version": "1.4.0",
"version": "1.5.0",
"license": "MIT",

@@ -14,3 +14,3 @@ "main": "dist/index.js",

"scripts": {
"prepublish": "npm prune",
"prepare": "npm prune",
"test": "jest --forceExit",

@@ -30,3 +30,3 @@ "test-cov": "jest --forceExit --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",

"babel-runtime": "^6.26.0",
"cache-manager": "^2.7.0",
"cache-manager": "^2.9.0",
"coveralls": "^2.13.1",

@@ -33,0 +33,0 @@ "jest": "^20.0.4",

@@ -572,2 +572,11 @@ import cacheManager from 'cache-manager';

it('should return an array of all keys if called without a pattern', (done) => {
redisCache.mset('foo', 'bar', 'foo2', 'bar2', 'foo3', 'bar3')
.then(() => redisCache.keys())
.then(result => {
expect(result).toHaveLength(3);
done();
});
});
it('should return an array of keys without pattern', (done) => {

@@ -629,2 +638,3 @@ redisCache.set('foo', 'bar', () => {

store: redisStore,
auth_pass: config.auth_pass,
isCacheableValue: () => {

@@ -648,2 +658,3 @@ return 'I was overridden';

store: redisStore,
auth_pass: config.auth_pass,
});

@@ -650,0 +661,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc