loganhenson / cronlock
Load balanced cron jobs. Backed by Predis.
Installs: 70
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/loganhenson/cronlock
Requires
- php: >=7.0
- predis/predis: ^1.1
Requires (Dev)
- phpunit/phpunit: ^5.4
This package is auto-updated.
Last update: 2025-10-17 08:16:17 UTC
README
Load balanced cron jobs. Backed by Predis.
install
composer require loganhenson/cronlock
sample usage
// 5 minutes after job, it will release the lock $CronLock = new CronLock(new Client()); // a nice key might be `__CLASS__ . __METHOD__` $CronLock->cron('some unique key for the job', function () { //do some cron stuff });
License
MIT