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.
Note the
MemorySharedLockAdapteris limited to single process usage and cannot be shared across multiple servers or different processes. This adapter is meant to be used for testing.IMPORT_PATH:
"@daiso-tech/core/shared-lock/memory-shared-lock-adapter"