redis-semaphore icon indicating copy to clipboard operation
redis-semaphore copied to clipboard

Distributed mutex and semaphore based on Redis

Results 52 redis-semaphore issues
Sort by recently updated
recently updated
newest added

My codes: const {Semaphore, TimeoutError} = require('redis-semaphore'); const Redis = require('ioredis'); redis = new Redis.Cluster( [ { host: REDIS_HOST, port: 6379 } ], { slotsRefreshTimeout: 10000, redisOptions: { password: REDIS_TOKEN,...

## Problem I am trying to use this package in an ES project but it looks like this package is currently only building for commonjs. ![image](https://user-images.githubusercontent.com/18427051/235151808-87270d2c-81a6-49a7-b39b-bfc14053afdb.png) ![image](https://user-images.githubusercontent.com/18427051/235152092-cde19e09-ab95-4930-b496-31d088b7b3ad.png) ## Fix I...

See https://martin.kleppmann.com/2016/02/08/how-to-do-distributed-locking.html for the explanation of a problem.

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.21 to 20.12.7. 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=20.11.21&new-version=20.12.7)](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

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.3.3 to 5.4.5. Release notes Sourced from typescript's releases. TypeScript 5.4.5 For release notes, check out the release announcement. For the complete list of fixed issues, check...

dependencies

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.1.0 to 7.8.0. Release notes Sourced from @​typescript-eslint/eslint-plugin's releases. v7.8.0 7.8.0 (2024-04-29) 🚀 Features rule-tester: assert suggestion messages are unique (#8995) typescript-estree: add maximumDefaultProjectFileMatchCount and wide allowDefaultProjectForFiles...

dependencies

Bumps [snyk](https://github.com/snyk/snyk) from 1.1280.1 to 1.1291.0. Release notes Sourced from snyk's releases. v1.1291.0 1.1291.0 (2024-04-30) The Snyk CLI is being deployed to different deployment channels, users can select the stability...

dependencies

Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.0 to 6.2.1. Commits bef7b1e 6.2.1 fe8cd57 prevent extraction in excessively deep subfolders fe7ebfd remove security.md See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tar&package-manager=npm_and_yarn&previous-version=6.2.0&new-version=6.2.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can...

dependencies

## Setup ### docker-compose.yml ```yml redis-node-1: container_name: redis-node-1 image: bitnami/redis-cluster:7.2 volumes: - redis-node-1:/data environment: - REDIS_PASSWORD=test - "REDIS_NODES=redis-node-1 redis-node-2 redis-node-3" ports: - "6379:6379" networks: - network-v2 redis-node-2: container_name: redis-node-2 image:...

Bumps [chai](https://github.com/chaijs/chai) from 4.4.1 to 5.1.0. Release notes Sourced from chai's releases. v5.1.0 What's Changed Remove useless guards and add parentheses to constuctors by @​koddsson in chaijs/chai#1593 Cleanup jsdoc comments...

dependencies