PHPackages                             yurunsoft/yurun-lock - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yurunsoft/yurun-lock

ActiveProject[Utility &amp; Helpers](/categories/utility)

yurunsoft/yurun-lock
====================

v0.4(8y ago)501.8k9PHP

Since Jul 13Pushed 8y ago4 watchersCompare

[ Source](https://github.com/Yurunsoft/YurunLock)[ Packagist](https://packagist.org/packages/yurunsoft/yurun-lock)[ RSS](/packages/yurunsoft-yurun-lock/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

YurunLock
=========

[](#yurunlock)

PHP阻塞锁和非阻塞锁机制，内置解决并发锁重复执行的方案。目前支持文件、Redis、Memcache、Memcached。

composer安装
==========

[](#composer安装)

在你项目中的 `composer.json` 文件中加入下面的内容

```
{
    "require": {
        "yurunsoft/yurun-lock": "dev-master"
    }
}
```

中国用户如果使用composer很卡，请查看：

代码用法
====

[](#代码用法)

文件锁
---

[](#文件锁)

```
