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.
To utilize the
RedisSharedLockAdapter, you must install the"ioredis"package.Note in order to use
RedisSharedLockAdaptercorrectly, ensure you use a single, consistent database across all server instances.IMPORT_PATH:
"@daiso-tech/core/shared-lock/redis-shared-lock-adapter"