🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

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
1.1.2

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

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

@@ -48,2 +48,6 @@ # redis-semaphore

// TypeScript
// import { Mutex } from 'redis-semaphore
// import Redis from 'ioredis'
const redisClient = new Redis()

@@ -80,2 +84,6 @@

// TypeScript
// import { Semaphore } from 'redis-semaphore
// import Redis from 'ioredis'
const redisClient = new Redis()

@@ -112,2 +120,6 @@

// TypeScript
// import { FairSemaphore } from 'redis-semaphore
// import Redis from 'ioredis'
const redisClient = new Redis()

@@ -114,0 +126,0 @@