The acquireReader method acquires a slot only if the slot limit is not reached.
Returns true if the slot limit is not reached otherwise false is returned.
The refreshWriter method will upadte ttl of lock if it matches the owner and is expireable.
Returns false if the lock is unexpireable, the is expired, does not match the owner otherwise true is returned.
The
ISharedLockAdaptercontract defines a way for managing locks independent of the underlying technology. This contract is not meant to be used directly, instead you should useISharedLockProvidercontract.IMPORT_PATH:
"@daiso-tech/core/shared-lock/contracts"