PHPackages                             heywooden/yunlock - 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. [Caching](/categories/caching)
4. /
5. heywooden/yunlock

ActiveLibrary[Caching](/categories/caching)

heywooden/yunlock
=================

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

v2.1.9(1y ago)035MITPHPPHP &gt;=5.5

Since Jun 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/heywoodend/YunLock)[ Packagist](https://packagist.org/packages/heywooden/yunlock)[ RSS](/packages/heywooden-yunlock/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Yunlock
=======

[](#yunlock)

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

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

[](#composer安装)

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

```
{
    "require": {
        "heywooden/yunlock": "^2.1"
    }
}
```

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

代码用法
====

[](#代码用法)

文件锁
---

[](#文件锁)

```
