Releases: php-lock/lock
Releases · php-lock/lock
Release 1.3
- Adds a new lock backend based on PostgreSQL's advisory locks. Thanks to @korotovsky for suggesting this feature.
- Spinlocks now use a back off factor of
1.5instead of2. This means that released locks will be detected earlier at the cost of performing more checks. This affects the various Redis and Memcached based lock backends. - Various testing and CI improvements.
Release 1.2
- This adds a new
MySQLMutexwhich usesGET_LOCK()as a back end. - Various improvements to tests.
Release 1.1
- Library no longer uses
rand()but instead usesrandom_int(). Now depends onparagonie/random_compatfor PHP 5.6 compatibility (#7, #9, #10). - Fixed issue where locks could not be released if
ext-rediswas used withSERIALIZER_PHPorSERIALIZER_IGBINARYserialization option (#8, #14, provided by @maestroprog). - Spin locks will now time out at the exact time out time, instead of waiting beyond the timeout.
- Distribution no longer ships with tests or tooling files.
composer.jsonwas updated to require all development extensions too.- Now tested against PHP 7.2 and PHP 7.3 too.
- HHVM support dropped.
BC breaks
- The method
seedRandom()has been removed from theRedisMutexclass.