node-redlock icon indicating copy to clipboard operation
node-redlock copied to clipboard

A node.js redlock implementation for distributed, highly-available redis locks

Results 72 node-redlock issues
Sort by recently updated
recently updated
newest added

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.45 to 18.7.4. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/node&package-manager=npm_and_yarn&previous-version=17.0.45&new-version=18.7.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

Is there a plan to release version 5 in the foreseeable future?

let lock = await redlock.acquire(["ABC123"], 5000); in above code , if I give key which is not present in redis db then code works fine. if i give key which...

Bumps [ioredis](https://github.com/luin/ioredis) from 4.28.5 to 5.2.2. Release notes Sourced from ioredis's releases. v5.2.2 5.2.2 (2022-07-23) Bug Fixes srandmember with count argument should return array of strings (#1620) (5f813f3) v5.2.1 5.2.1...

dependencies

Hey, Given the following code: ```javascript try { return await this.redLock.using(resources, lockRenewalTime, options, fn); } catch (err) { // err is always "ExecutionError: The operation was unable to achieve a...

In [Distributed locks with Redis – Redis - The Redlock algorithm](https://redis.io/topics/distlock#the-redlock-algorithm), it says: > In order to acquire the lock, the client performs the following operations: > > 1. It...

This PR: - hopefully this fixes https://github.com/mike-marcacci/node-redlock/issues/168 - refactors drift calculation to reduce repetition and allow usage in e.g. tests Note: - Some tests seem to be non-predictable, e.g. `...

I'm having some trouble using this library. I have an endpoint which gets called twice upon page load and I'm trying to use a lock to perform sensitive database operations...

node-relock version: 4.1.0 ioredis version: 4.14.1 Hi, I'm trying to use node-redlock with redis-cluster. When locking multi resources, I got a "LockError" exception. It exceeds the 10 attempts to lock....

bug