UNPKG

redis-semaphore

Version:

Distributed mutex and semaphore based on Redis

8 lines (7 loc) 266 B
import { RedisClient } from '../../types'; export interface Options { identifier: string; lockTimeout: number; now: number; } export declare function releaseSemaphore(client: RedisClient, key: string, permits: number, identifier: string): Promise<void>;