UNPKG

redis-semaphore

Version:

Distributed mutex and semaphore based on Redis

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