Methods
aquire
- aquire(lockKey: string, maxAgeMs: number): Promise<boolean>
-
Parameters
-
lockKey: string
-
maxAgeMs: number
Returns Promise<boolean>
hasLock
- hasLock(lockKey: string): Promise<boolean>
-
Returns Promise<boolean>
release
- release(lockKey: string): Promise<boolean>
-
Returns Promise<boolean>
Returns true if the lock is aquired