redis-lock
Rusty distributed locking backed by Redis.
// Setup.
setup.await?;
// Get lock.
let mut lock = new?;
let resources = vec!;
// Execute a function with the lock.
lock.map_default.await?;
Vs rslock
I would recommend this library over rslock when your application does operations that require exclusive access to multiple resources.