Type Alias LockFactoryCreateSettings

LockFactoryCreateSettings: { lockId?: string; ttl?: ITimeSpan | null }

IMPORT_PATH: "@daiso-tech/core/lock/contracts"

Type declaration

  • OptionallockId?: string

    Custom identifier for the lock instance. Used to uniquely identify the lock holder and prevent conflicts with other lock owners. If not specified, a unique identifier will be automatically generated.

  • Optionalttl?: ITimeSpan | null

    Time-to-live (TTL) duration for the lock. When set, the lock will automatically expire after this duration if not refreshed. Pass null to create a lock without expiration.