PHPackages                             cheprasov/php-redis-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. [Caching](/categories/caching)
4. /
5. cheprasov/php-redis-lock

ActiveLibrary[Caching](/categories/caching)

cheprasov/php-redis-lock
========================

RedisLock for PHP is a synchronization mechanism for enforcing limits on access to a resource in an environment where there are many threads of execution. A lock is designed to enforce a mutual exclusion concurrency control policy.

1.0.3(8y ago)108435.1k—3.8%28[1 issues](https://github.com/cheprasov/php-redis-lock/issues)1MITPHPPHP &gt;=5.5CI failing

Since Jul 19Pushed 4y ago2 watchersCompare

[ Source](https://github.com/cheprasov/php-redis-lock)[ Packagist](https://packagist.org/packages/cheprasov/php-redis-lock)[ Docs](http://github.com/cheprasov/php-redis-lock)[ RSS](/packages/cheprasov-php-redis-lock/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (1)

[![MIT license](https://camo.githubusercontent.com/4661abfe916186acde514558e7f040833cb63ba7098401a51ce339cbb2b4cf9e/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](http://opensource.org/licenses/MIT)[![Latest Stable Version](https://camo.githubusercontent.com/c16acd70fd7ea28761edff4b05be6b98e326d48d9eb57795acba3a8918b541bc/68747470733a2f2f706f7365722e707567782e6f72672f636865707261736f762f7068702d72656469732d6c6f636b2f762f737461626c65)](https://packagist.org/packages/cheprasov/php-redis-lock)[![Total Downloads](https://camo.githubusercontent.com/e676c73bf27f891a138336e59557aad155612297ccc3e8360ea660a980096e0a/68747470733a2f2f706f7365722e707567782e6f72672f636865707261736f762f7068702d72656469732d6c6f636b2f646f776e6c6f616473)](https://packagist.org/packages/cheprasov/php-redis-lock)

RedisLock v1.0.3 for PHP &gt;= 5.5
==================================

[](#redislock-v103-for-php--55)

About
-----

[](#about)

RedisLock for PHP is a synchronization mechanism for enforcing limits on access to a resource in an environment where there are many threads of execution. A lock is designed to enforce a mutual exclusion concurrency control policy. Based on [redis](http://redis.io/).

Usage
-----

[](#usage)

### Create a new instance of RedisLock

[](#create-a-new-instance-of-redislock)

```
