0.0.9 • Published 8 years ago

health-check-redis v0.0.9

Weekly downloads
228
License
MIT
Repository
github
Last release
8 years ago

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); 
 });
0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago