Retrieves the current lock data for a given key.
Readable execution context for the operation
Unique identifier for the lock
Promise resolving to the lock's owner and expiration data if found, otherwise null
Creates a new lock record if it doesn't exist, or updates the existing one. Used to persist the current owner and expiration state of a lock.
Readable execution context for the operation
Unique identifier for the lock
The unique identifier of the lock owner
The date and time when the lock expires, or null for indefinite locks
Promise that resolves when the upsert operation completes
Transactional operations interface for lock state in database. Used within database transactions to ensure atomic lock updates and consistency.
IMPORT_PATH:
"@daiso-tech/core/lock/contracts"