How to use the redlock.LockError function in redlock

To help you get started, we’ve selected a few redlock examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / ghcrawler / test / unit / requestTrackerTests.js View on Github external
    locker.unlock = sinon.spy(lock => { throw new redlock.LockError('fail!'); });
    const tracker = createTracker('test', redis, locker);

redlock

A node.js redlock implementation for distributed redis locks

MIT
Latest version published 3 years ago

Package Health Score

71 / 100
Full package analysis

Popular redlock functions