The acquire method acquires a lock only if the lock is not already acquired. Returns true if not already acquired othewise false is returned.
The refresh method will upadte ttl of lock if it matches the given key and matches the given owner. Returns true if the update occured otherwise false is returned.
The withGroup method returns a new IDatabaseLockAdapter instance that groups locks together. Only locks in the same group will be acquired and released, leaving locks outside the group unaffected.
The ILockAdapter contract defines a way for managing locks independent of the underlying technology. This contract is not meant to be used directly, instead you should use ILockProvider contract.
IMPORT_PATH:
"@daiso-tech/core/lock/contracts"