pub async fn extend_redlock<F, Fut>(
try_extend_fn: F,
clients: &[RedisClient],
acquire_results: &[bool],
timeouts: &RedLockTimeouts,
cancel_token: &Receiver<bool>,
) -> Result<Option<bool>, LockError>Expand description
Extends a lock using the RedLock algorithm across multiple Redis servers.
Similar to acquire, requires majority consensus for successful extension.
ยงArguments
try_extend_fn- Function that attempts to extend the lock on a single clientclients- List of Redis clients where lock was acquiredacquire_results- Previous acquire results indicating which clients hold the locktimeouts- Timeout configurationcancel_token- Cancellation token