New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fwsp-cacher

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fwsp-cacher - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

15

index.js
'use strict';
const Promise = require('bluebird');
const redis = require('redis');
const utils = require('fwsp-jsutils');
const RedisConnection = require('fwsp-redis-connection');

@@ -35,11 +35,6 @@ /**

openDB() {
let db = redis.createClient(
this.config.port,
this.config.url,
null);
return new Promise((resolve, reject) => {
db.select(this.config.db, (err, reply) => {
(err) ? reject(err) : resolve(db);
});
});
let retryStrategy = this.config.retry_strategy;
delete this.config.retry_strategy;
let redisConnection = new RedisConnection(this.config);
return redisConnection.connect(retryStrategy)
}

@@ -46,0 +41,0 @@

{
"name": "fwsp-cacher",
"version": "1.0.2",
"version": "1.0.3",
"description": "A caching module for use with Node and Redis",

@@ -24,5 +24,5 @@ "author": {

"dependencies": {
"bluebird": "^3.3.5",
"fwsp-jsutils": "1.0.8",
"redis": "^2.6.0-2"
"bluebird": "3.5.0",
"fwsp-jsutils": "1.0.10",
"fwsp-redis-connection": "0.0.3"
},

@@ -29,0 +29,0 @@ "devDependencies": {

# Cacher
[![npm version](https://badge.fury.io/js/fwsp-cacher.svg)](https://badge.fury.io/js/fwsp-cacher) <span class="badge-npmdownloads"><a href="https://npmjs.org/package/fwsp-cacher" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/fwsp-cacher.svg" alt="NPM downloads" /></a></span> [![npm](https://img.shields.io/npm/l/fwsp-cacher.svg)]() [![Libraries.io for GitHub](https://img.shields.io/librariesio/github/flywheelsports/fwsp-cacher/fwsp-cacher.svg)]()
A simple module for caching using Redis.

@@ -3,0 +6,0 @@

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