🔗 Redis redlock - active advisory locking mechanism

Requires PHP 5.4 or higher. This locking mechanism is implemented using a best practise for Redis, however, it's not even remotely perfect.
The problem is that Redis doesn't have native locks, and they have to be emulated. You may (or may not) run into problems when you experience extreme traffic, some of the threads die and the lock was not released and it's released after the timeout. While the timeout is running, other users have to wait and the system may just collapse.

🌎 https://github.com/Kdyby/RedisActiveLock