You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

redis-semaphore

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-semaphore - npm Package Compare versions

Comparing version

to
0.2.2

@@ -70,3 +70,3 @@ const RedisClient = require('redis').RedisClient

async acquire() {
debug(`refresh mutex (key: ${this._key})`)
debug(`acquire mutex (key: ${this._key})`)
this._identifier = await mutex.acquire(

@@ -73,0 +73,0 @@ this._client,

@@ -53,3 +53,3 @@ const RedisMutex = require('./Mutex')

async acquire() {
debug(`refresh semaphore (key: ${this._key})`)
debug(`acquire semaphore (key: ${this._key})`)
this._identifier = await semaphore.acquire(

@@ -56,0 +56,0 @@ this._client,

{
"name": "redis-semaphore",
"version": "0.2.1",
"version": "0.2.2",
"description": "Distributed mutex and semaphore based on Redis",

@@ -5,0 +5,0 @@ "main": "index.js",