New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

locker-redis

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

locker-redis

simple locker by redis

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

locker-redis

[![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url]

Installation

$ npm install locker-redis
$ npm install ioredis

API

var RedisLocker = require('locker-redis');
var LockerTimeoutError = require('locker-redis').LockerTimeoutError;
var redisLocker = new RedisLocker(lockerName, options);

RedisLocker(name,options)

RedisLocker class

RedisLocker#acquire(function next(){})

Acquire redisLocker retry some times.If timeout then throw error.

redisLocker.acquire(function (err) {
  if (err) {
    return callback(new Error());
  }
  callback(null);
});

RedisLocker#release(function next(){})

Release this redisLocker

redisLocker.release();

License

MIT

Keywords

locker redis

FAQs

Package last updated on 12 Sep 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