UNPKG

redis-semaphore

Version:

Distributed mutex and semaphore based on Redis

8 lines (7 loc) 281 B
import { RedisClient } from '../types'; interface Options { identifier: string; lockTimeout: number; } export declare function refreshRedlockMultiSemaphore(clients: RedisClient[], key: string, limit: number, permits: number, options: Options): Promise<boolean>; export {};