Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

systemic-redis

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systemic-redis - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

.github/workflows/main.yml

15

index.js

@@ -35,2 +35,9 @@ module.exports = (options) => {

const { keepAlive, keepAliveTimer: keepAliveTimerParam } = config;
if (keepAliveTimerParam && (isNaN(keepAliveTimerParam) || keepAliveTimerParam <= 0)) {
throw new Error(`${keepAliveTimerParam} is not a valid number.`);
}
// 30 seconds by default
const keepAliveTimer = keepAliveTimerParam ? keepAliveTimerParam * 1000 : 30000;
({ logger } = dependencies);

@@ -51,2 +58,10 @@

/**
* Redis instances in Azure disconnect the client after an IDLE time causing a forced reconnection.
* https://gist.github.com/JonCole/925630df72be1351b21440625ff2671f#file-redis-bestpractices-node-js-md
*/
keepAlive && setInterval(() => {
client.ping();
}, keepAliveTimer);
return client;

@@ -53,0 +68,0 @@ };

6

package.json
{
"name": "systemic-redis",
"version": "2.0.0",
"version": "2.0.1",
"description": "A systemic redis component",

@@ -21,3 +21,3 @@ "main": "index.js",

"dependencies": {
"redis": "^3.0.2"
"redis": "^3.1.2"
},

@@ -33,2 +33,2 @@ "devDependencies": {},

"homepage": "https://github.com/guidesmiths/systemic-redis#readme"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc