| Package Data | |
|---|---|
| Maintainer Username: | Youngyezi |
| Package Create Date: | 2018-12-27 |
| Package Last Update: | 2018-12-27 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:18:10 |
| Package Statistics | |
|---|---|
| Total Downloads: | 8 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
redis 分布式锁
composer require youngyezi/mutex
use Youngyezi\Mutex\Mutex;
$mutex = new Mutex();
if( $mutex->lock("test") ) {
//do something
...
$mutex->unlock("test");
}