PHPackages                             cheprasov/php-memcached-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. cheprasov/php-memcached-lock

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

cheprasov/php-memcached-lock
============================

MemcachedLock 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.5(8y ago)9242.6k—1.9%21MITPHPPHP &gt;=5.5CI failing

Since Oct 31Pushed 4y ago4 watchersCompare

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

READMEChangelog (8)Dependencies (2)Versions (9)Used By (1)

[![MIT license](https://camo.githubusercontent.com/4661abfe916186acde514558e7f040833cb63ba7098401a51ce339cbb2b4cf9e/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](http://opensource.org/licenses/MIT)[![Latest Stable Version](https://camo.githubusercontent.com/038d3091281283840044e1767777f3a9736cf3bbaf2bb1eef9518be0a7e3e74e/68747470733a2f2f706f7365722e707567782e6f72672f636865707261736f762f7068702d6d656d6361636865642d6c6f636b2f762f737461626c65)](https://packagist.org/packages/cheprasov/php-memcached-lock)[![Total Downloads](https://camo.githubusercontent.com/d31391bf533a7a00e82a91d8b0061d0fad15f57b8741ae1b68061db855319ff3/68747470733a2f2f706f7365722e707567782e6f72672f636865707261736f762f7068702d6d656d6361636865642d6c6f636b2f646f776e6c6f616473)](https://packagist.org/packages/cheprasov/php-memcached-lock)

MemcachedLock v1.0.5 for PHP &gt;= 5.5
======================================

[](#memcachedlock-v105-for-php--55)

About
-----

[](#about)

MemcachedLock 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 [Memcached](http://php.net/manual/en/book.memcached.php).

Usage
-----

[](#usage)

### Create a new instance of MemcachedLock

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

```
