redis-semaphore
Advanced tools
@@ -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", |