Extend the TTL of an existing lock
Lock handle from acquire()
New TTL in milliseconds
Promise resolving to true if extended, false if lock expired
Get the underlying Redis adapter for atomic operations
Redis adapter instance or null if not applicable (e.g., for RedLock with multiple adapters)
Check if a lock is currently held
Lock key to check
Promise resolving to true if locked, false otherwise
Release a previously acquired lock
Lock handle from acquire()
Promise resolving to true if released, false if already expired
Execute a routine with automatic lock management and extension Auto-extends when remaining TTL < 20% (extends at ~80% consumed) Provides ExtendedAbortSignal when extension fails
Function to execute while holding the lock
Promise resolving to the routine result
Abstract base class for all lock implementations