Skip to content

Introduce DistributedMutex class #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Dec 9, 2024
Merged

Introduce DistributedMutex class #75

merged 22 commits into from
Dec 9, 2024

Conversation

mvorisek
Copy link
Member

@mvorisek mvorisek commented Dec 9, 2024

Originally, RedisMutex supported multiple clients, but there is no reason to not support any mutex as a distributed backend.

BC break: RedisMutex constructor newly accepts only 1 Redis client

For one 1 Redis client: Pass the client directly to the RedisMutex constructor.

For multiple Redis clients: Create RedisMutex instance for each client and pass them into DistributedMutex constructor.

@mvorisek mvorisek force-pushed the distributed branch 3 times, most recently from 9b5cfcd to 3b61fac Compare December 9, 2024 22:13
@mvorisek mvorisek marked this pull request as ready for review December 9, 2024 23:08
@mvorisek mvorisek merged commit af4f378 into master Dec 9, 2024
28 checks passed
@mvorisek mvorisek deleted the distributed branch December 9, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant