Skip to content

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

2 participants