distributed_lock

Function distributed_lock 

Source
pub fn distributed_lock() -> Script
Expand description

Distributed lock with expiration

ยงArguments

  • KEYS[1]: The lock key
  • ARGV[1]: Lock identifier (unique per client)
  • ARGV[2]: Lock expiration in seconds