A function that produces the lock key from the wrapped function's arguments. The lock is acquired on this key, ensuring mutual exclusion across processes for the same key.
OptionallockId?: Invokable<TParameters, string>A function that produces a unique identifier for the current lock acquisition attempt. The lock ID distinguishes competing consumers trying to acquire the same lock.
Optionalttl?: ITimeSpan | nullTime-to-live for the lock. If null the lock never expires
automatically. If omitted the default TTL of the lock factory is used.
Settings for the distributed-lock middleware.