UNPKG

redis-semaphore

Version:

Distributed mutex and semaphore based on Redis

4 lines (3 loc) 253 B
import type { RedisClient } from '../types'; export declare const delIfEqualLua: (client: RedisClient, args: [string, string]) => Promise<0 | 1>; export declare function releaseMutex(client: RedisClient, key: string, identifier: string): Promise<void>;