Crate distributed_lock_mysql

Crate distributed_lock_mysql 

Source
Expand description

MySQL backend for distributed locks.

Uses MySQL’s GET_LOCK and RELEASE_LOCK functions for distributed locking across multiple processes and machines.

Re-exports§

pub use handle::MySqlLockHandle;
pub use provider::MySqlLockProvider;
pub use provider::MySqlLockProviderBuilder;
pub use rw_lock::MySqlDistributedReaderWriterLock;
pub use rw_lock::MySqlReadLockHandle;
pub use rw_lock::MySqlWriteLockHandle;

Modules§

connection
MySQL connection management for distributed locks.
handle
MySQL lock handle implementation.
lock
MySQL distributed lock implementation using GET_LOCK/RELEASE_LOCK.
name
MySQL lock name encoding and validation.
provider
MySQL lock provider implementation.
rw_lock
MySQL distributed reader-writer lock implementation.