Acquires a lock on the requested identifier. The promise will resolve when the lock has been acquired.
Generate and return a list of RedisClients based on the provided strings
a list of strings that contain either a host address and a port number like '127.0.0.1:6379' or just a port number like '6379'
Generate and return a Redlock instance
a list of RedisClients you want to use for the redlock instance
extra redlock options to overwrite the default config
This function is internally used to keep an acquired lock active, a wrapper class will handle expiration
Identifier of the lock to be extended
Counts the number of active locks.
Releases a lock on the requested identifier. The promise will resolve when the lock has been released. In case there is no lock on the resource an error should be thrown.
A locking system that uses a Redis server or any number of Redis nodes / clusters This solution has issues though: