定制 13dagger/mutex 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

13dagger/mutex

Composer 安装命令:

composer require 13dagger/mutex

包简介

Simple MutEx lock implementation based on directory creation

README 文档

README

Simple MutEx lock implementation.

Gives you the easy way to check that your script runs as the only instance.

Basics

  1. try to lock, if ok -> run your program, else stop
  2. unlock when finished the job

Usage as php library

if (Mutex::lock('example_job')) {
    // doing a job
}

by default library registers shutdown function to unlock, you can change this by changing the Mutex::$autoUnlock to false and using Mutex::unlock() method

Usage as linux command

install:

./install

lock:

mutex lock some_action

unlock:

mutex unlock some_action

统计信息

  • 总下载量: 24
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2018-11-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固