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

health-check-redis

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

health-check-redis

Get the health of redis infra

  • 0.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
62
decreased by-46.55%
Maintainers
1
Weekly downloads
 
Created
Source

Health Check Redis

CI

Circle CI

Install

$ npm install health-check-redis

Usage

var healthCheckRedis = require('health-check-redis');

healthCheckRedis.do([
{
  host: '127.0.0.1',
  port: 6379
},
{
  host: 'wrong host',
  port: 6379
}])
 .then(function(result){
    console.log(result); 
    
    /* 
      { 
        health: false,
        success: 1,
        error: 1,
        details: 
          [ 
            { 
              name: '127.0.0.1:6379', 
              health: true, 
              message: '' 
            },
            { 
              name: 'wrong host:6379',
              health: false,
              message: 'Redis connection to wrong host:6379 failed - getaddrinfo ENOTFOUND wrong host wrong host:6379' 
            } 
          ] 
      }
    */
 })
 .catch(function(error){
    console.log(error); 
 });

Keywords

FAQs

Package last updated on 17 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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