alanalbert/laravel_mutex
Composer 安装命令:
composer require alanalbert/laravel_mutex
包简介
Get the mutex file path of command in laravel.
README 文档
README
Get the file mutex path of command in laravel or lumen.
获取laravel或lumen的命令文件锁路径。
Usage
- Install
composer require alanalbert/laravel_mutex --dev
- Code
$path = get_command_mutex(function (\Illuminate\Console\Scheduling\Schedule $schedule) { // schedule command return $schedule->command('test')->withoutOverlapping()->runInBackground(); });
You can find the file instorage/framework/cache/data.
Different environments will get different paths. 不同的运行环境将会得到不同的文件锁路径。
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-11