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

redis-pulse

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-pulse

Simple ping-pong heartbeat for redis connection

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-43.75%
Maintainers
1
Weekly downloads
 
Created
Source

Redis Pulse

npm

Simple redis heartbeat. It will send ping command to connection repeatedly while it is open.

Depends on redis npm package as a peer.

Installation

npm i redis-pulse --save

API

Module is just one method, that will get your connection as an argument and return it.

pulse(redisClient, options)

  • redisClient - any redis client (redis.creteClient() result)
  • options
    • timeout - time in ms between pings

Example

Just that simple:

const redis = require('redis');
const pulse = require('redis-pulse');

const client = pulse(redis.createClient());

Keywords

FAQs

Package last updated on 22 Nov 2017

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